Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to create a zoom function for a picturebox but I search the net and most of the result are related using images.How can I zoom one without using an image.Thx
Posted

Check this 3 Solutions
Solution 1[^]
Solution 2[^]
Solution 3[^]
 
Share this answer
 
Your question is a bit confusing as if there is no picture, what are you zooming?

In any event, since the only way to do this is to order draw the image in the new scale and position, you're completely defeating the purpose of using a PictureBox in the first place. So, you'd be making a custom control, probably from scratch anyway.
 
Share this answer
 
Comments
Member 10285974 22-Oct-13 1:56am    
I used drawpoint which plot coordinates. I want a zoom function as those coordinates are too close together
Dave Kreskowiak 22-Oct-13 8:40am    
You're going to have to ask the people who wrote DrawPoint. Your first question should be, "What does it draw on??" Is it an Image that gets returned?? Or do you have to provide a control and it does all the drawing on that controls surface?? The the DrawPoint library offer any of the functionality you need by itself?? The answers to these questions will heavily determine how you have to attack this problem.

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