Last post Oct 23, 2006 09:32 AM by Jigar
Oct 07, 2006 09:33 AM|fatti|LINK
I need to create a circle on the screen in an ASP page. I can find the code to do it on a Windows form but not a Web form. Is there a difference and if so how is this done?
Im not after anything fancy at this stage just a plain circle about 70% the height of the screen in the middle of a webpage.
Am I right in thinking that GDI+ is only for Windows forms and not Web forms?
Any help in this issue would be much appreciated.
Oct 07, 2006 11:49 AM|vcsjones|LINK
Oct 07, 2006 08:13 PM|fatti|LINK
Damn. I know you can get certain online picture editors with Java applets and stuff.
What I am trying to acheive is a webpage that comes up with a picture of a target on it. I was hoping I could generate this on the webpage but if it has to be a jpeg then so be it. I want the user to be able to point the mouse within that target and put
a shot(smaller filled eclipse) within the target and be able to monitor the position of that shot by X and Y coordinates.
Later on I will be attaching it to a database to record the shots as per the user that made them.
Any ideas on how I can acheive this as my experience with C# and ASP is limited.
Oct 07, 2006 11:37 PM|vcsjones|LINK
You could use a ImageButton, and get the x/y coordinates of where the person clicked. This may be better suited for an ActiveX control, like Flash or a Java Applet.
Oct 08, 2006 01:51 AM|fatti|LINK
If I could do it in Java it would be great but its for a Uni assignment and I am limited to C# . Ive been doing some reading on Imagemaps. Maybe if it registers where on the image the user clicks and then regenerates the image with the "shot" superimposed
where the user clicked. This could suck up a lot of resources though as it is loading a new image each time a shot is registered.
Hmmmm I need some more thought on this I think.
Thanks for the input so far anyway.
Oct 23, 2006 09:32 AM|Jigar|LINK
Check this sample code.
Draw a circle over an image