Click here to Skip to main content
14,693,130 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hello everybody!

I want to know how to zoom a picture in a panel based on cursor position.
The zoom function should be same as Win7 Windows Photo Viewer

Thanks!
Posted

   
Comments
Dalek Dave 23-Mar-11 11:59am
   
Good Old CP Archive!
WooD1014 23-Mar-11 13:06pm
   
Before raising this question, I must have googled it. However, the sample code is not that I want. Maybe my searching keyword is not so precise. Besides, I want to say that "Asking is a kind of Searching."

Anyway, Thank you very much! The reference that you provided, is excellent!!!
Sergey Alexandrovich Kryukov 23-Mar-11 19:38pm
   
Very good, my 5.
--SA
Espen Harlinn 24-Mar-11 3:40am
   
Nice links, my 5
Hi,

here is a very nice article explaining the needed procedures in VB.NET. You could easily adapt this to C#.
Pan and Zoom Very Large Images[^]
   
Comments
Dalek Dave 23-Mar-11 11:59am
   
Good Link
WooD1014 23-Mar-11 13:14pm
   
Thank you very much!
Espen Harlinn 24-Mar-11 3:41am
   
Nice link, my 5

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