Unofficial Content

This method is part of  Image Tools project

Motivation

Cropping refers to removing unwanted areas from a photographic or illustrated image. One of the most basic photo manipulation processes, it is performed in order to remove an unwanted subject or irrelevant detail from a photo.

Syntax

Crop( ImageSourcePath, ImageTargetPath, InitialX, InitialY,DeepX,DeepY)

where:
ImageSourcePath
    Is the original image path (full or relative).
ImageTargetPath
    Is the image returned path.
InitialX
    Is the X coordinate (in pixel)
InitialY
    Is the Y coordinate (in pixel)
DeepX
    Is the X deep (in pixel)
DeepY
    Is the Y deep (in pixel)

 

Example

ImageTools.Crop("XIXGX-2EN.jpg","XIXGX-2ENcropped.jpg",30,30,80,80)

 Image_Tools_Crop1.PNG
 

Output

Image_Tools_Crop2.PNG

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