Yes, refer to the Magick++ documentation on,
http://www.imagemagick.org/Magick++/Documentation.html
and for pixels in particular, http://www.imagemagick.org/Magick++/Image.html#columns
Look at bottom section, 'Low-level image pixel access'
The Pixels Class also provides pixel access, look at
http ...
Search found 4 matches
- 2012-02-15T08:21:42-07:00
- Forum: Magick++
- Topic: Get color of pixel with Magick++
- Replies: 2
- Views: 20520
- 2012-02-15T06:52:29-07:00
- Forum: Magick++
- Topic: Cannot get TIFF img w/ changed pixels to write/sync properly
- Replies: 4
- Views: 16777
Re: Cannot get TIFF img w/ changed pixels to write/sync prop
K, I was using ImageMagick 6.4.0 with a cygwin compiler. I'll see if I can update to 6.7.5-6, since the syncPixels() should be working.
After updating Magick++ to 6.7.5-6 on cygwin, I was able to get the program producing all yellow pixels (working correctly) with
tifImage.classType ( DirectClass ...
After updating Magick++ to 6.7.5-6 on cygwin, I was able to get the program producing all yellow pixels (working correctly) with
tifImage.classType ( DirectClass ...
- 2012-02-14T19:03:58-07:00
- Forum: Magick++
- Topic: Cannot get TIFF img w/ changed pixels to write/sync properly
- Replies: 4
- Views: 16777
Re: Cannot get TIFF img w/ changed pixels to write/sync prop
Thanks for the quick response, so I added the line
tifImage.classType( DirectClass );
But the output was still the half black and white .tif, then I removed the line
tifImage.syncPixels();
And output.tif is a full yellow 1256x1586 .tif image. Then I tried some different operations like replacing ...
tifImage.classType( DirectClass );
But the output was still the half black and white .tif, then I removed the line
tifImage.syncPixels();
And output.tif is a full yellow 1256x1586 .tif image. Then I tried some different operations like replacing ...
- 2012-02-14T17:16:23-07:00
- Forum: Magick++
- Topic: Cannot get TIFF img w/ changed pixels to write/sync properly
- Replies: 4
- Views: 16777
Cannot get TIFF img w/ changed pixels to write/sync properly
Hey everyone,
I am trying to read in a TIFF file to Image, manipulate the pixels and write it back to disk in TIFF format. Using the pixel cache (PixelPacket *), it seems to work for jpg but not TIFF. The following code should just make the entire image yellow, but for TIFF, the outputted image is ...
I am trying to read in a TIFF file to Image, manipulate the pixels and write it back to disk in TIFF format. Using the pixel cache (PixelPacket *), it seems to work for jpg but not TIFF. The following code should just make the entire image yellow, but for TIFF, the outputted image is ...