Is this your first time here? SwingWiki is a Java Swing Developer community site with an big archive of Swing-related usenet groups and mailing lists, but also tips, tricks and articles and book reviews written by your colleagues from around the world. If you came here through a search engine and did not find what you were looking for, make sure to check the wiki table of contents.

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.
Found what you were looking for? If not - continue at Wiki Index

Other messages in this topic

SenderDate sentSubject
zaske [yair.zaslavsky@masked-domain]Mon, 31 Mar 2008 02:14:00 -0700 (PDT)[Jmagick] Checking if image is transparent

 
Recent changes | RSS changes | Table of contents | News Archive | Terms And Conditions | Register | The Quest For Software++| Ruby Resources
FitNesse Resources