|
-
Nov 15th, 2008, 02:38 PM
#1
Thread Starter
Hyperactive Member
[2005] Best Strategy For Drawing a Point On A Graph
I have made a pretty fancy graph image in Photoshop and would like to use it as a background image of a Panel. That's easy enough but now I'm not sure how to place points marking data inside or over the background image. Whenever I draw a point it seems to be underneath the background image. When I erase the image the stuff I draw is there but I can't get the image and the creategraphics methods in Paint to work together.
My question then is how can you, using creategraphics, draw over a background image? Is it better just to draw the graph with creategraphics members and trash the bitmap?
Thanx!
Intermediate Level Programmer Extraordinaire 
-
Nov 16th, 2008, 12:16 AM
#2
Re: [2005] Best Strategy For Drawing a Point On A Graph
You don't use CreateGraphics at all, so you must being doing it wrong. Follow the Simple Drawing link in my signature to see how to draw on a control. I'd suggest using a PictureBox with its Image property set, rather than a Panel with its BackgroundImage set.
-
Nov 22nd, 2008, 04:48 PM
#3
Thread Starter
Hyperactive Member
Re: [2005] Best Strategy For Drawing a Point On A Graph
I fixed this using e.graphics. I was a little rusty after a long layoff from programming.
Thanx!
Intermediate Level Programmer Extraordinaire 
-
Nov 22nd, 2008, 05:32 PM
#4
Frenzied Member
Re: [2005] Best Strategy For Drawing a Point On A Graph
You should mark the thread resolved if you require no further assistance... Keeps the forums tidy Glad to see you've solved your problem. Cheers!
Please rate helpful ppl's posts. It's the best 'thank you' you can give 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|