Image scroll position / zoom

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Moderator: Alex

Post Reply
gianni.sanzone
Posts: 7
Joined: Fri May 05, 2023 12:49 pm

Image scroll position / zoom

Post by gianni.sanzone »

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
Alex
Site Admin
Posts: 2319
Joined: Thu Jul 10, 2008 2:21 pm

Re: Image scroll position / zoom

Post by Alex »

Hi,

Do you want to work with zoom and scrolls in WinForms, WPF or Web image viewer?

Best regards, Alexander
gianni.sanzone
Posts: 7
Joined: Fri May 05, 2023 12:49 pm

Re: Image scroll position / zoom

Post by gianni.sanzone »

Sorry,

i'm working in WinForms,

thanks
Alex
Site Admin
Posts: 2319
Joined: Thu Jul 10, 2008 2:21 pm

Re: Image scroll position / zoom

Post by Alex »

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
Post Reply