Optionaloptions: PaintToolsPluginOptionsDetermines whether the specified image format is supported for modifications.
The image format to check, either as an enum value or string.
OptionalallowUnknown: booleanIf true, allows unknown formats (ImageFormatCode.Default) to be considered supported.
True if the format is supported for modifications, false otherwise.
Cleans up resources and disposes the plugin.
Removes and disposes the active paint layer. If no paint layer exists, this method does nothing.
The method is called when the GcImageViewer component is initialized.
Gets the image viewer instance. The image viewer instance.
Plugin options passed at construction time.
Gets or sets the default visual properties for each paint and object tool at runtime.
Reading this property returns the last value set either via the constructor option
toolsOptions or by a previous assignment.
Setting this property immediately:
Previously placed objects and the user's own interactive adjustments are not affected.
Returns the resolved item layout for the Effects toolbar.
Reflects toolbarLayout.effectsTools from plugin options:
true/undefined/null → default layout; false → empty array; array → used as-is.
Returns the layout for the effects tools toolbar.
If the value is true, undefined, or null, a default layout is returned.
If the value is false, an empty layout is returned.
Otherwise, the provided custom layout is used.
Returns the layout for the effects tools toolbar.
If the value is true, undefined, or null, a default layout is returned.
If the value is false, an empty layout is returned.
Otherwise, the provided custom layout is used.
Returns the layout for the effects tools toolbar.
If the value is true, undefined, or null, a default layout is returned.
If the value is false, an empty layout is returned.
Otherwise, the provided custom layout is used.
Gets the paint layer containing the HTML canvas for drawing the image.
Returns true if the image is loaded into the viewer and the image format is supported by the Image Filters plugin.
Natural image size.
Unique plug-in identifier.
Paint Tools Plugin. Adds the "Paint tools", "Effects" and "Text and Objects" buttons.
Example