Re: [Jmagick] Checking if image is transparent
| From:Bob Friesenhahn [bfriesen@masked-domain] |
| Sent on:Mon, 31 Mar 2008 10:09:56 -0500 (CDT) |
| In reply to:[Jmagick] Checking if image is transparent sent on Mon, 31 Mar 2008 02:14:00 -0700 (PDT) by zaske [yair.zaslavsky@masked-domain] |
On Mon, 31 Mar 2008, zaske wrote:
> Or to put my question in other words -
> I loaded an image into MagickIMage object. How can I determine if this image
> has a color that is defined as transparent?
Check to see if the "matte" attribute flag is set. This flag enables
use of transparency ("opacity") at all. However, even if it is set,
it is possible that there are no pixels with transparency. The only
way to know for sure is to test all of the pixels.
Bob
======================================
Bob Friesenhahn
[bfriesen@masked-domain], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
_______________________________________________
JMagick mailing list
[JMagick@masked-domain]
http://www.yeo.id.au/mailman/listinfo/jmagick
Please ensure that [JMagick@masked-domain] is a recipient when replying.
Other messages in this topic