ImgArea_SetProperty_JSN¶
→ | areaRef |
Longint | The plug-in area reference. |
→ | propName |
Text | The property name. |
→ | propValueJSON |
Text | The property value in JSON format. |
Set the value of a plug-in area property.
Parameter areaRef
is the plug-in area reference.
The name of the property to be set is specified by propName
.
The value of the property is returned in propValueJSON
as a JSON serialization.
The properties defined by the plug-in area are described in the following table.
Property name | Type | Default | Description |
---|---|---|---|
SelectionVisible |
Boolean |
True if the marquee selection is currently visible, False otherwise. Read-only. |
|
ZoomFactorRange |
object |
The option’s value specifies the minimum and maximum zoom factors. See the table below for details on the object contents of this property. | |
DefaultZoom |
object |
The option’s value specifies the default zoom mode and factor when an image document is assigned to the plug-in area. See the table below for details on the object contents of this property. | |
ZoomToolRate |
Real |
1.25 |
The option’s value specifies the zoom tool rate. The zoom tool rate is the number with which the current zoom factor is multiplied when zooming in with the zoom tool. Conversely, the current zoom factor is divided by the zoom rate when zooming out. |
UseHorzScrollbar |
Boolean |
True |
Whether to use the horizontal scrollbar or not. |
UseVertScrollbar |
Boolean |
True |
Whether to use the vertical scrollbar or not. |
AutoHideScrollbars |
Boolean |
True |
Whether to hide the scrollbars when the displayed image size fits the usable space on the corresponding axis. |
DefaultHorzAlignment |
Longint |
0 |
How to align the image in the display area when the image width is greater that the area width. Set to |
DefaultVertAlignment |
Longint |
0 |
How to align the image in the display area when the image height is greater that the area height. Set to |
The contents of the ZoomFactorRange
property object are described in the following table.
Property name | Type | Default | Description |
---|---|---|---|
Minimum |
Real |
0.02 |
The option’s value specifies the minimum zoom factor of the plug-in area. |
Maximum |
Real |
50.0 |
The option’s value specifies the maximum zoom factor of the plug-in area. |
The contents of the DefaultZoom
property object are described in the following table.
Property name | Type | Default | Description |
---|---|---|---|
ZoomFactor |
Real |
1.0 |
The option’s value specifies the plug-in area’s default zoom factor. If the |
AutoZoom |
Longint |
0 |
The option’s value specifies the plug-in area’s default auto-zoom mode. If set to a valid auto-zoom mode, the specified mode is applied to the
plug-in area when a document is assigned to it. If set to |
Note
In addition to the properties defined by the plug-in area, applications can attach
and access custom properties to a plug-in area for their own use.
The type of plug-in area properties can be any of: Boolean
, Longint
,
Real
, Text
, Object
, Boolean array
, Longint array
,
Real array
, Text array
, Object array
.
Note
The ImgArea_SetProperty
method in the Q2PixLib component is a convenience
wrapper for this method that receives the property value directly from a 4D variable in the
correct type, instead of a JSON serialization.