Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 20th, 2004, 12:32 PM
Registered User
 
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Plotting co-ordinates

I have the various co-ordinates of elements in a database. I need to read this co-ordinates and plot and these points on a web page. i also need to show the x and y axis

 
Old April 20th, 2004, 12:45 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

The System.Drawing namespace has lots of methods and classes for creating images on the fly. You could use those to draw your plot.

To get the image on a page, you'll need to either create the image and save it to the server hard disk, and then provide a normal image tag that points to that image, or you could point the image tag to another page that does the image generation and replies with the binary stream of the image. The second way removes the need to save images to disk and saves lots of permissions headaches. Also doesn't chew up space on the disk.

Peter
-------------------------
Work smarter, not harder
 
Old April 20th, 2004, 12:50 PM
Registered User
 
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

planoie, thanks for the response...my problem is actually plotting these co-orindates..i am having a hard time plotting these points. It is a series of around 144 points, each point having its own x,y.


 
Old April 20th, 2004, 01:04 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Have you looked at the drawing namespace yet? In there are lots of classes. Maybe the Pen class is what you need. With drawing namespace classes you can create a blank image "canvas" and draw onto it all the things you want, including the points of your coordinates. Obviously, you'll need to do the math to figure out where to plot the points.

What do you mean by "having a hard time"? What have you tried so far?
 
Old April 20th, 2004, 02:00 PM
Registered User
 
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am trying to get the hierachy working right and also feeding in the co-ordinates. I ve never done this before. I come from a CGI/PERL background. Do you have some sample code I can look at?thank you






Similar Threads
Thread Thread Starter Forum Replies Last Post
Co-ordinates of the window shwethabelame C# 0 August 20th, 2007 04:30 PM
How to Plotting on a map by GPS? goreng C# 0 December 18th, 2006 09:13 AM
GPS, Plotting on a map goldablasha C# 0 October 20th, 2005 07:34 PM
Plotting graph using Infragistics NetAdvantage 5 dotnetprogrammer VS.NET 2002/2003 0 June 1st, 2005 07:11 AM
Plotting a graph on a Java Applet cooldude87801 BOOK: Beginning Java 2 1 June 12th, 2003 08:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.