Description
Captures a portion of the screen either by a specified rectangle coordinates, a window name or handle
-
Return Type
-
A McImage object.
-
Syntax
-
object.CaptureWindow ([Window], [ClientArea], [ShowCursor], [Flags])
The CaptureWindow Method syntax has these parts: |
| object | An expression evaluating to an object of type McApplication. | | Window | Optional. A Variant value. Window name or handle, full screen if not specified
| | ClientArea | Optional. A Variant value. Optional LONGRECT variable, TRUE or FALSE if Window argument specified
| | ShowCursor | Optional. A Boolean value. Show the cursor in the resulting capture
| | Flags | Optional. A mcImageCreateFlags enumeration, as described in settings. Image Creation Flags applied to create the image - default is mcicfNotVisible | mcicfNoAddToCollection
| Settings The settings for Flags are:
 | mcicfDefault | 0 | |
 | mcicfContiguous | 1 |
If set, frames are allocated contiguously, and you cannot add to the FrameCount at a later time.
|
 | mcicfNoInit | 2 |
Default is to initialize to 0 (black), this flag suppresses initialization.
|
 | mcicfNoAddToCollection | 4 |
If set, the image is created, but not added to the collection (see Notes).
|
 | mcicfNotVisible | 8 |
If set, the image is created, possibly added to collection (see above), but not made visible.
|
 | mcipfNoImportProperties | 8388608 |
Suppress ImportProperties for functions creating an image from another.
|
|