|
|
|
|
|
<Image variable>.Crop (Function) In french: <Variable Image>.Découpe Returns the cropped part of an image. This image is in a variable of type Image.
MyCroppedImage is Image
MyImage is Image
MyImage = "image.png"
MyCroppedImage = MyImage.Crop(10, 10, 100, 100)
Syntax
Cropping an image by specifying coordinates Hide the details
<Result> = <Image variable>.Crop(<X> , <Y> , <Width> , <Height>)
<Result>: Image variable Image variable containing the cropped image. <Image variable>: Image variable Name of the Image variable corresponding to the image to be cropped. <X>: Integer X-coordinate (in pixels) of the upper-left corner of the area to be cropped. <Y>: Integer Y-coordinate (in pixels) of the upper-left corner of the area to be cropped. <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).
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|