17.2. Methods Common to All Image Types
Images are real objects; we need to create them and, when we're finished, destroy them; otherwise, their resources remain in use for the duration of program execution. For instance, if we create an image and assign it to a Label, then at some later time destroy the Label, like so:
my $l = $mw->Label(-image -> $image) ... $l->destroy;
This applies to Bitmap, Pixmap, and Photo image types. Here are other methods available for any image type:
Copyright © 2002 O'Reilly & Associates. All rights reserved.