How to resize an image
Contents
[
Hide
]
How to resize an image
For resizing an image, we are using the method Load of the class Image to load an image into a cache memory. Then we apply Resize method to the image with a new size by specifying desired height and width `300x300` in pixels and save the result to a new file.
Example C# code:
Additionally, you can make photo sizing proportionally the picture width or height and specify the resizing type by selecting `ResizeType.LanczosResample` parameter:
There are several Resize types available for resizing photos. Please see the link to the table which describes the resize type parameters.