Name
getPixel( ) — get color index of a given pixel
Synopsis
GD::Image::getPixel(x,y
)
The getPixel( )
method returns
the color table index of the color at the specified pixel. As with
all functions that return a color index, you can use the
rgb( )
method to convert the index to a list of
the integer red, green, and blue values.
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.