Unable to read raw pixel data for a single pixel

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

AcquireOnePixel() is a MagickCore method. You can access it with MagickLib::AcquireOnePixel(). For Magick++, use Magick::Pixels::getConst() to acquire pixels.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

For the command line use

Code: Select all

   convert image.png  -crop 1x1+3+5 txt:-    
to get the 3,5 pixel
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply