Scroll to navigation

Prima::Image::TransparencyControl(3) User Contributed Perl Documentation Prima::Image::TransparencyControl(3)

NAME

Prima::Image::TransparencyControl - standard dialog for selecting transparent color when saving an image to a file.

DESCRIPTION

The module contains two classes - "Prima::Image::BasicTransparencyDialog" and "Prima::Image::TransparencyControl". The former provides the dialog used by image codec-specific save options dialogs to select a transparent color index when saving an image to a file. "Prima::Image::TransparencyControl" is the widget class that displays the image palette and allows color rather than index selection.

Prima::Image::TransparencyControl

Properties

Selects the palette index
Selects the image, reads its palette, and displays it in such a manner that only a color that is found in the palette can be selected by the user.

Events

Triggered when the user changes the "index" property.

Prima::Image::BasicTransparencyDialog

Methods

If 1, the transparent color widgets are enabled, and the user can select the transparent color index in the image palette. If 0, the widgets are disabled; the image file is saved with no transparent color index.

The property can also be toggled interactively by a checkbox.

AUTHOR

Dmitry Karasik, <dmitry@karasik.eu.org>.

SEE ALSO

Prima::Dialog::ImageDialog.

2024-08-20 perl v5.40.0