 | ImagingCaptureDesktopImageWithSurroundingArea Method |
Captures an image of the of the element and its surrounding area from the desktop.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static Bitmap CaptureDesktopImageWithSurroundingArea(
Element element,
Nullable<Point> mousePoint,
Color highlightColor
)
Public Shared Function CaptureDesktopImageWithSurroundingArea (
element As Element,
mousePoint As Nullable(Of Point),
highlightColor As Color
) As Bitmap
Parameters
- element
- Type: Ranorex.CoreElement
The element to capture within its periphery. - mousePoint
- Type: SystemNullablePoint
A point specifying the screen coordinates of the current
mouse cursor or null in order not to capture the mouse cursor. - highlightColor
- Type: System.DrawingColor
The color used to highlight the element within its surrounding area
or Empty to not highlight the element.
Return Value
Type:
BitmapThe captured image.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | element is a null reference. |
See Also