Hi Alex,
I would like to save just the visible part of the image which is shown in
the imageViewer. For example after zooming I would like to crop the visible
part and save it as a new image. How can I do that?
Thank you for your help,
Best regards,
Heinz
Save only the visible part of the image
Moderator: Alex
Re: Save only the visible part of the image
Hello Heinz,
You can get visible part of WPF image viewer using the WpfImageViewer.GetCurrentImageRect(Rect,Boolean) method.
Here is an example:
Best regards, Alexander
You can get visible part of WPF image viewer using the WpfImageViewer.GetCurrentImageRect(Rect,Boolean) method.
Here is an example:
Code: Select all
VintasoftImage imageViewerVisiblePart = WpfImageViewer1.GetCurrentImageRect(WpfImageViewer1.ViewerState.ImageVisibleRect, true);