Transparent GIF: alpha or matte?
Posted: 2006-08-29T12:24:05-07:00
I have a transparent GIF, from which I need to get the transparent color. The [VC++] function Image::matteColor() returns a Magick::Color structure with the _pixel member set to (189, 189, 189, 0), and Magick::Color::isValid() returns TRUE.
The following is the output from identify on the same test file:
It appears that the matteColor() function is returning the same value as in the identify Matte color, which is NOT a transparent color.
How do I get the value from the Alpha channel, (255,255,255,255) #FFFFFFFF?
I'd really appreciate some help with this.
Thanks,
sanderton
The following is the output from identify on the same test file:
Format: GIF (CompuServe graphics interchange format)
Class: PseudoClass
Geometry: 395x143
Type: PaletteMatte
Endianess: Undefined
Colorspace: RGB
Channel depth:
Red: 8-bit
Green: 8-bit
Blue: 8-bit
Alpha: 1-bit
Channel statistics:
...
Alpha: (255,255,255,255) #FFFFFFFF
Colors: 32
...
Background color: #FFFFFFFF
Border color: #DFDFDF00
Matte color: grey74
Transparent color: none
...
Signature: 9466f495ba70137858733ec1b035745ed436da00abc7c844006e7449ba5e9d9b
Tainted: False
Version: ImageMagick 6.2.9 08/21/06 Q8 http://www.imagemagick.org
It appears that the matteColor() function is returning the same value as in the identify Matte color, which is NOT a transparent color.
How do I get the value from the Alpha channel, (255,255,255,255) #FFFFFFFF?
I'd really appreciate some help with this.
Thanks,
sanderton