Returns the cropped part of an image. This image is found in an
Image variable.
MyCroppedImage is Image
MyImage is Image
MyImage = "image.png"
MyCroppedImage = dCrop(MyImage, 10, 10, 100, 100)
Syntax
<Result> = dCrop(<Image> , <X> , <Y> , <Width> , <Height>)
<Result>: Image variable
Image variable containing the clipped image.
<Image>: Image variable
Name of the Image variable corresponding to the image to crop.
<X>: Integer
X coordinate (in pixels) of the top left corner of the area to crop.
<Y>: Integer
Y coordinate (in pixels) of the top left corner of the area to crop.
<Width>: Integer
Width of the area to crop.
<Height>: Integer
Height of the area to crop.
Remarks
This function triggers a non-fatal error if the area to crop is invalid (area larger than the source image or empty area).