Name
colorDeallocate( ) — remove a color from the color table
Synopsis
GD::Image::colorDeallocate(colorindex
)
The colorDeallocate( )
method
makes the color referred to by the colorindex
parameter available for reallocation with the
colorAllocate( )
method. The color- index must
be an index in the color table that was returned by one of the other
color manipulation methods. Note that the color will not actually be
removed from the colormap until another color is allocated. The
number of colors in the colormap will not be reduced by this method.
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.