Name
Opaque( ) — globally change a color
Synopsis
$image->Opaque(color=>color,
pen=>color
)
Opaque( )
changes the entry
corresponding to the color parameter in the image’s colormap to
the pen
color. To change all the white pixels in
an image to red, for example, use:
# Change all white pixels to red $image->Opaque(color=>'white', pen=>'red');
Get Programming Web Graphics with Perl and GNU Softwar 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.