PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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 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 clipped, the entire area corresponding to the window is copied: therefore, the elements that appear in background of the clipped window are also copied.
  • Caution: If the "Allow window screenshot" option ("Details" tab of the description window) is not checked, the window image will be entirely blacked out. This option can be modified in the code using the ScreenshotAllowed property.
Component: wd280pnt.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment