Simple way to change Image Resolution before saving

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

Moderator: Alex

Post Reply
xgecko
Posts: 6
Joined: Mon Sep 09, 2019 11:42 pm

Simple way to change Image Resolution before saving

Post 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!
xgecko
Posts: 6
Joined: Mon Sep 09, 2019 11:42 pm

Re: Simple way to change Image Resolution before saving

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

Re: Simple way to change Image Resolution before saving

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