ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Drawing functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns the cropped part of an image. This image is found in an Image variable.
Example
MonImageDécoupée is Image
MonImage is Image
MonImage = "Image.png"

MonImageDécoupée = dCrop(MonImage, 10, 10, 100, 100)
Syntax

Cutting an Image according to coordinates Hide the details

<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.
New in version 2024
WINDEVWEBDEV - Server codeLinuxUniversal Windows 10 AppiPhone/iPadIOS WidgetMac Catalyst

Cut an Image into a rectangle Hide the details

<Result> = dCrop(<Image> , <Rectangle>)
<Result>: Image variable
Image variable containing the clipped image.
<Image>: Image variable
Name of the Image variable corresponding to the image to crop.
<Rectangle>: Rectangle variable
Name of Variable of type Rectangle corresponding to the area to be cut in Image.
Remarks
This function triggers a non-fatal error if the area to crop is invalid (area larger than the source image or empty area).
Business / UI classification: Neutral code
Component: wd290pnt.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/12/2024

Send a report | Local help