Search found 4 matches

by dc87
2012-02-15T08:21:42-07:00
Forum: Magick++
Topic: Get color of pixel with Magick++
Replies: 2
Views: 18030

Re: Get color of pixel with Magick++

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://...
by dc87
2012-02-15T06:52:29-07:00
Forum: Magick++
Topic: Cannot get TIFF img w/ changed pixels to write/sync properly
Replies: 4
Views: 14523

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); ...
by dc87
2012-02-14T19:03:58-07:00
Forum: Magick++
Topic: Cannot get TIFF img w/ changed pixels to write/sync properly
Replies: 4
Views: 14523

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 all...
by dc87
2012-02-14T17:16:23-07:00
Forum: Magick++
Topic: Cannot get TIFF img w/ changed pixels to write/sync properly
Replies: 4
Views: 14523

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 h...