Help / WLanguage / WLanguage functions / Controls, pages and windows / Drawing functions
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Copies the image from a WINDEV window to a variable of type Image or to an Image control.
// Copies the image of the current window into an image variable
MyImage is Image = dCopyWindowImage("")
<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):
(Default value)
The shadow is kept when the window is copied.
dNoShadowThe shadow is not kept when the window is copied.
  • 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: wd300pnt.dll
Minimum version required
  • Version 17
This page is also available for…
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help