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
Copies the content of the screen to a variable of type Image or to an Image control.
Example
// Copie de l'écran dans une variable de type Image
MonImage is Image 
MonImage = dCopyScreenImage()
// Affectation dans un champ Image
IMG_Image = MonImage
Syntax

Copy the screen, entering the coordinates of the area to be copied Hide the details

<Result> = dCopyScreenImage([<X> [, <Y> [, <Width> [, <Height>]]]])
<Result>: Image or Binary Buffer variable
  • Name of the variable of type Image that will contain the screenshot
  • Binary buffer corresponding to the image. This buffer can be directly assigned to an Image control.
<X>: Optional integer
X-coordinate (in pixels) of the upper-left corner of the area to be copied (0 by default, i.e., upper-left corner of screen 1).
<Y>: Optional integer
Y-coordinate (in pixels) of the upper-left corner of the area to be copied (0 by default, i.e., upper-left corner of screen 1).
<Width>: Optional integer
Width (in pixels) of the area to be copied (width of the screen by default).
<Height>: Optional integer
Height (in pixels) of the area to be copied (height of the screen by default).
New in version 2024

Copy the screen, delimiting the source area with a Rectangle Variable Hide the details

<Result> = dCopyScreenImage([<Area to be copied>])
<Result>: Image or Binary Buffer variable
  • Name of the variable of type Image that will contain the screenshot
  • Binary buffer corresponding to the image. This buffer can be directly assigned to an Image control.
<Area to be copied>: Rectangle variable
Name of the Variable type Rectangle Receiver corresponding to the rectangular area of the screen to be copied..
Remarks
Caution: If the "Allow window screenshot" option is not enabled for a WINDEV window ("Details" tab in the description window), the image of the window will be blacked out. You can change this option programmatically, using the ScreenshotAllowed property.
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/16/2024

Send a report | Local help