Why does backgroundColor() not match identify -verbose?

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
treaves
Posts: 12
Joined: 2011-04-14T10:48:35-07:00
Authentication code: 8675308

Why does backgroundColor() not match identify -verbose?

Post by treaves » 2011-04-14T11:47:51-07:00

I have several black & white images. If I run identify -verbose, Background Color: is correct; white when it is white, and black when it is black. However, when I use backgroundColor().to_std_string() always returns #FFFFFFFFFFFF. Moreover, I can do image.negate() and then the backgroundColor().to_std_string() still shows #FFFFFFFFFFFF (even though if I save the image, identify will show the correct color).

Am I not understanding something?

User avatar
anthony
Posts: 8874
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Why does backgroundColor() not match identify -verbose?

Post by anthony » 2011-05-20T00:13:23-07:00

To items First #FFFFFFFFFFFF is white! Just a different representation of white

Second negate negates the image data. It does not touch meta-data such as background color
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
http://www.imagemagick.org/Usage/

Post Reply