PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the cropped part of an image. This image is found in an Image variable.
Versions 18 and later
Java This function is now available for Java applications.
New in version 18
Java This function is now available for Java applications.
Java This function is now available for Java applications.
Example
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>: entier
X coordinate (in pixels) of the top left corner of the area to crop.
<Y>: entier
Y coordinate (in pixels) of the top left corner of the area to crop.
<Width>: entier
Width of the area to crop.
<Height>: entier
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).
Component: wd260pnt.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment