 | 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
Syntaxpublic static Bitmap CaptureImageAuto(
Element element,
bool ensureVisibleIfNeeded
)
Public Shared Function CaptureImageAuto (
element As Element,
ensureVisibleIfNeeded As Boolean
) As Bitmap
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:
BitmapThe captured image.
See Also