RanorexRanorex Documentation
CaptureImage Method (element, delay, ensureVisible)
NamespacesRanorexImagingCaptureImage(Element, Int32, Boolean)
Captures an image of an element.
Declaration Syntax
C#Visual BasicVisual C++
public static Bitmap CaptureImage(
	Element element,
	int delay,
	bool ensureVisible
)
Public Shared Function CaptureImage ( _
	element As Element, _
	delay As Integer, _
	ensureVisible As Boolean _
) As Bitmap
public:
static Bitmap^ CaptureImage(
	Element^ element, 
	int delay, 
	bool ensureVisible
)
Parameters
element (Element)
The element to capture.
delay (Int32)
Capture wait delay.
ensureVisible (Boolean)
If true, the element is made visible before any capturing is done.
Return Value
The captured image.
Remarks
Note that the element must be visible to capture a useful image.

Assembly: Ranorex.Core (Module: Ranorex.Core) Version: 3.2.3.16825 (3.2.3.16825)