ColorGray shade(0.0)
"Lars Benner" <[email protected]> Tue, 3 Oct 2006 16:59:44 +0200
| Newsgroups | gmane.comp.video.graphicsmagick.apis |
|---|---|
| Message-ID | <[email protected]> |
Hi List, I hope this is the right place for reporting, what I think, is a strange behavior of the ColorGray class of Magik++. I am trying to set the pixel color of an image this way: ColorGray color; color.shade(v); aImage.pixelColor(color); But every time v is 0.0, an exception is thrown at aImage.pixelColor(color): Magick: Color argument is invalid reported by \home\bfriesen\GraphicsMagick\1.1\Magick++\lib\Exception.cpp:272 (Magick::throwExceptionExplicit) If I use ColorRGB and set red, green and blue to 0.0, it is working out as expected. Also reading out ColorGray pixel colors from a loaded gray scale image, returns 0.0 as expected. Is this a problem of the API respectively the class or do I simply not understand the deeper meaning. Any comment is welcome. Thanks in advance, Lars ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV