in reply to Extracting pixel values

GD can do that. See the getPixel() and rgb() methods.

By the way, I fixed up an additional alpha() method to complement rgb() in Geo::GD::Image

Replies are listed 'Best First'.
Re^2: Extracting pixel values
by kjhermans (Initiate) on May 19, 2013 at 19:16 UTC
    In GD - Is there a way to *retrieve* the alpha value of a pixel? I can do $i = $img->getPixel($x,$y); and use rgb() to get its rgb value, and the perldoc says something about hexadecimal strings carrying it. But I can't see a way to extract the hex-string. Everything seems to be concentrated on drawing, rather than extracting values from pictures.