Application Delivery Management
Application Modernization & Connectivity
CyberRes
IT Operations Management
How to capture a screenshot of a window into a bitmap
You have to use this syntax:
CALL "W$BITMAP"
USING WBITMAP-CAPTURE-IMAGE,
"C:\AcuSamples\bitmap\Resource\image.bmp",
0, | 0 = active window is captured
0, | 0 = The entire window is captured, including the title bar, window frame, menu, etc.
1, | 1 = monochrome, 32 = 32-bits per pixel
GIVING w-BITMAP-HANDLE
If W-BITMAP-HANDLE = 1, you will find your screenshot in the saved .bmp file.
For further details, see:
Appendix I: ACUCOBOL-GT Library Routines > I.1 Library Routines > W$BITMAP