Is there any methods in GDI+ to do such operations?
Anybody, Please Help...
Thanks in advance.
Is there any methods in GDI+ to do such operations?
Anybody, Please Help...
Thanks in advance.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
FroglegPosted Jun 7, 2012, 4:15 PM
Chandan RathPosted Jun 7, 2012, 12:16 AM
FroglegPosted Jun 6, 2012, 2:04 PM
1: Put a panel on your form, and set it's autoscroll properties to true
2: Put a picturebox inside that panel - sizemode autosize.
3: You need to get a ratio of width and height, so that when you zoom in, you keep the aspect ratio.
Before zooming, the picturebox sizemode needs to be set to stretchimage.
When you want to zoom in, increase the size of the picturebox and the parent panel will then display scroll bars as required