Unofficial Content

This method is part of  Image Tools project

Motivation

Allows you to resize an image (if you want to maintain aspect ratio see generate thumbnail method)

Syntax

Resize( ImageSourcePath, ImageTargetPath, TargetHeight, TargetWidth)

where:
ImageSourcePath
    Is the original image path (full or relative).
ImageTargetPath
    Is the image returned path.
TargetHeight
    Is the height or the new image.
TargetWidth
    Is the width or the new image.


Example

 ImageTools.Resize("XIXGX-1EN.jpg"," XIXGX-1ENResized.jpg",400,100)

 

Image_Tools_Resize1.PNG

Output

Image_Tools_Resize2.PNG

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant