Click here to Skip to main content
15,915,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,I want to load an image on a panel . then I want to messure the edgs of the image by using the function I have and draw the lines of the edges on that panel by clicking a button(not loosing my image).After that I want to draw lines on that image by using mouse.I also want to be able to erase the lines by mouse without erasing the main image.Now which functions should I use in every case?
Update:
One way may be that I set the backgroundImage of the panel with my image and use the paint function to draw exta lines _drawn by mouse.if I use this method, then which function should I use to draw lines of edges_drawn by clicking button? Is there a better way? Please guide me .Thanks in advance
Posted
Updated 8-Dec-11 20:53pm
v2

1 solution

Use a Panel object, set the BackgroundImage property to your loaded image, and then you can draw on the panel without affecting your background image.
 
Share this answer
 
Comments
ready to learn 8-Dec-11 15:30pm    
I used this way but if I want to set the backgroundImage of my image in the paint function,the image will lights up during drawing and if I want to se the backgroundImage in another function,then how should I darw on it?Edited:if I use this method,then I can use paint function to draw lines_by using mouse. which function should I use to draw lines _by clicking button?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900