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
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Copies the image from a WINDEV window to a variable of type Image or to an Image control.
Example
// Copies the image of the current window into an image variable
MyImage is Image = dCopyWindowImage("")
Syntax
<Result> = dCopyWindowImage(<Window> [, <Shadow management>])
<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.
<Window>: Character string
Name of WINDEV or WINDEV Mobile window whose image will be copied. If this parameter corresponds an empty string (""), the current window will be copied.
<Shadow management>: Integer constant
Shadow mode for window borders (Windows 10 mainly):
dWithShadow
(Default value)
The shadow is kept when the window is copied.
dNoShadowThe shadow is not kept when the window is copied.
Remarks
  • The window to copy must be displayed on the screen.
  • If the window is cropped, the entire area corresponding to the window is copied: the elements appearing in the background of the cropped window are therefore also copied..
  • Warning: If the "Allow window screenshot" option ("Detail" tab of the description window) is not checked, the window image will be entirely black.. You can change this option programmatically, using the ScreenshotAllowed property.
Component: wd300pnt.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help