Page 1 of 1

Simple way to change Image Resolution before saving

Posted: Thu Sep 24, 2020 12:57 am
by xgecko
I looked over the documentation and cannot see how to change the Image Resolution easily. All I need to do is resize the image based on the new Resolution prior to saving.

Can someone please point me to the proper documentation, or better yet, give me a quick example of how I might do this? I am using the WPF version of the controls, and have my loaded into a WPFImageViewer.

Thanks!

Re: Simple way to change Image Resolution before saving

Posted: Thu Sep 24, 2020 12:59 am
by xgecko
And of course moments after posting this... I discovered the Resize method. If that is the answer, then I have what I need. If not, then I still need a good answer.

Re: Simple way to change Image Resolution before saving

Posted: Thu Sep 24, 2020 8:52 am
by Alex
Hello,

If you need to change an image resolution with appropriate resizing, you need to use ResampleCommand class.

If you need to resize image, you can use VintasoftImage.Resize method or ResizeCommand class.

If you need to change image resolution, you need to use VintasoftImage.Resolution property.

Best regards, Alexander