ImgArea_GetSelection_JSN¶
Return the marquee selection rectangle.
ImgArea_GetSelection_JSN(areaRef) ➔ selectionJSON
| → | areaRef |
Longint | The plug-in area reference. |
| ↩︎ | selectionJSON |
Text | The area’s current selection JSON format. |
Return the marquee selection rectangle of a plug-in area.
The plug-in area is specified by imageRef.
The selection rectangle is returned in selection as a 4D object
serialized in JSON format:
| Property name | Type | Description |
|---|---|---|
PointSelection |
RectObj |
The marquee selection rectangle expressed in points. |
PixelSelection |
RectObj |
The marquee selection rectangle expressed in pixels. Present only when the plug-in area displays a raster image. |
If there is no marquee selection, an empty string is returned.
Note
The ImgArea_GetSelection method in the Q2PixLib component is a
convenience wrapper for this method that returns the selection directly as
a 4D object instead of a JSON serialization.