 | ImagingCaptureImage Method (Element, Int32, Boolean) |
Captures an image of an element.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static Bitmap CaptureImage(
Element element,
int delay,
bool ensureVisible
)
Public Shared Function CaptureImage (
element As Element,
delay As Integer,
ensureVisible As Boolean
) As Bitmap
Parameters
- element
- Type: Ranorex.CoreElement
The element to capture. - delay
- Type: SystemInt32
Capture wait delay. - ensureVisible
- Type: SystemBoolean
If true, the element is made visible before any capturing is done.
Return Value
Type:
BitmapThe captured image.
Remarks
Note that the element must be visible to capture a useful image.
See Also