PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
dCrop (Function)
In French: dDécoupe
Returns the cropped part of an image. This image is found in an Image variable.
Versions 18 and later
WINDEVJava This function is now available for the Java applications.
Android This function is now available for the Android applications.
New in version 18
WINDEVJava This function is now available for the Java applications.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Android This function is now available for the Android applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
MyCroppedImage is Image
MyImage is Image
MyImage = "image.png"

MyCroppedImage = dCrop(MyImage, 10, 10, 100, 100)
Syntax
<Result> = dCrop(<Image to Crop> , <X> , <Y> , <Width> , <Height>)
<Result>: Image variable
Image variable containing the clipped image.
<Image to Crop>: Image variable
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).
Components
WINDEVWEBDEV - Server codeReports and Queries wd230pnt.dll
Java wd230java.jar
Linux wd230pnt.so
Android wd230android.jar
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment