Click or drag to resize
Ranorex

ImagingCaptureImageAuto Method (Element, Boolean)

Captures an image of the element even if it is hidden by other elements. If this does not succeed, the visible portion of the element is captured using a screenshot.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static Bitmap CaptureImageAuto(
	Element element,
	bool ensureVisibleIfNeeded
)

Parameters

element
Type: Ranorex.CoreElement
The element to capture.
ensureVisibleIfNeeded
Type: SystemBoolean
If capturing the image hidden does not succeed, this value specified if the element should be made visible before capturing the screenshot.

Return Value

Type: Bitmap
The captured image.
See Also