
76 Perl/Tk Pocket Reference
-foreground => color
Set foreground color for bitmap.
-maskdata => string
Specify contents of mask in X11 bitmap format.
-maskfile => pathName
Gives name of file whose contents define the mask in X11
bitmap format.
The Photo Image Method
-data => string
Specifies contents of image in a supported format.
-format => formatName
Specifies format for data specified with the
-data or -
file options.
-file => pathName
Gives name of file whose contents define the image in
supported format.
-height => number
Specifies pixel height of the image.
-palette => paletteSpec
Sets the resolution of the color cube to be allocated for
image.
-width => number
Specifies pixel width of the image.
$image->blank;
Blanks the image so it has no data and is completely trans-
parent.
$image->copy(sourceImage ?, -option => value ... ?);
Copies a region from sourceImage to
$image using given
options.
-from => x1, y1, x2, y2
Specifies rectangular region of source image to be
copied.