in reply to Pixel by pixel reading of images
You might want to look a little closer. GD::getPixel does what you want to do, I think. Combine it with GD::rgb to get the rgb color at that point, like so:
my $index = $myImage->getPixel(20,100); my ($r,$g,$b) = $myImage->rgb($index);
Hope this helps.
|
|---|