bitmap window.CaptureBitmap()
Applicable Classes: All
Return Type: bitmap
Parameters: none
Description:
Captures the bitmap of the window and returns it as a bitmap variable.
Only the client area of the window will be captured, along with any
child windows in the client area.
Example
Code |
use
"PhantomTarget.dec";
System("PhantomTarget.exe");
# Capture the entire PhantomTarget client area
bitmap b = PhantomTarget.CaptureBitmap();
b.Save("PhantomTarget.bmp");
PhantomTarget._Controls._RadioButton.Select();
# Capture the radio dialog bitmap
b = Radio.CaptureBitmap();
b.Save("RadioDialog.bmp");
# Capture only the group controls
b = Radio.Group.CaptureBitmap();
b.Save("RadioGroup.bmp");
# Exit out
Radio.OK.Click();
PhantomTarget.Close();
|
See Also: bitmap