ImgArea_SetSelectionΒΆ

Change the marquee selection rectangle.
ImgArea_SetSelection(areaRef; selection)
areaRef Longint The image area reference.
selection Object The image area selection rectangle.

Change the marquee selection rectangle of a plug-in area.

Parameter areaRef is the plug-in area reference.

The selection rectangle is specified in selection as a 4D object containing any of the following properties:

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 selection is an undefined object or omitted the marquee selection is cleared.

Note

This method is a convenience wrapper for the ImgArea_SetSelection_JSN plug-in method.