HI,
my goal is this:
show an image on the image viewer and enlarge the image. I would like to save the current situation (coordinates or scroll positions and index zoom).
When reloading the image on the image viewer, I would like to set the same zoom and scroll position.
Is there a class that manages the view or will I do it with the ScrollToPoint function?
Could i use HorizontalScroll/VerticalScroll properties?
Thanks
Image scroll position / zoom
Moderator: Alex
-
- Site Admin
- Posts: 2397
- Joined: Thu Jul 10, 2008 2:21 pm
Re: Image scroll position / zoom
Hi,
Do you want to work with zoom and scrolls in WinForms, WPF or Web image viewer?
Best regards, Alexander
Do you want to work with zoom and scrolls in WinForms, WPF or Web image viewer?
Best regards, Alexander
-
- Posts: 7
- Joined: Fri May 05, 2023 12:49 pm
Re: Image scroll position / zoom
Sorry,
i'm working in WinForms,
thanks
i'm working in WinForms,
thanks
-
- Site Admin
- Posts: 2397
- Joined: Thu Jul 10, 2008 2:21 pm
Re: Image scroll position / zoom
Thank you for information.
If you want to get or set the current zoom in WinForms image viewer, you need to use the ImageViewer.ZoomExtended property.
If you want to get or set the current scroll position in WinForms image viewer, you need to use the ImageViewer.AutoScrollPositionEx property.
Best regards, Alexander
If you want to get or set the current zoom in WinForms image viewer, you need to use the ImageViewer.ZoomExtended property.
If you want to get or set the current scroll position in WinForms image viewer, you need to use the ImageViewer.AutoScrollPositionEx property.
Best regards, Alexander