Miscellaneous Image Methods

Here is a list of miscellaneous image methods:

$widget->Getimage( image_name )

Scans the images used by the MainWindow for an image, and @INC if the image is not already loaded, with the specified name and returns the Perl/Tk image reference. Search order is XPM, GIF, PPM, BMP, XBM. If an image is not located, the search continues with the built-in image names.

$widget->imageNames

Returns a list of image names used by the MainWindow. Currently, these names are the actual image references. (Not available as an image method.)

$widget->imageTypes

Returns a list of the image types currently used by the MainWindow, not the available image types. An image type appears in this list only if at least one instance has been created. (Not available as an image method.)

Get Mastering Perl/Tk now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.