Re: MagickGetImageAttribute and a transparency question
Bob Friesenhahn <[email protected]> Mon, 21 Jan 2013 21:31:38 -0600 (CST)
| Newsgroups | gmane.comp.video.graphicsmagick.apis |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 21 Jan 2013, Manfred Rebentisch wrote: > > Ok, I am german and stupid in english: what means "matte"? > But thank you for this tip too! I am stupid in english too even though it is my native language. The term comes from filmmaking. See "http://en.wikipedia.org/wiki/Matte_%28filmmaking%29". In GraphicsMagick, the Image structure has a 'matte' member boolean which indicates if the image can be non-opaque (support transparency). Even if the matte member is True, the image might still be opaque since it might not have any non-opaque pixels. The core C API has the function GetImageCharacteristics() which can be used to obtain various image characteristics (such as if it is opaque). If the 'optimize' argument to this function is True, then every pixel in the image will be inspected if necessary in order to ensure that the answer is as correct as possible (regardless of flags like 'matte'). Bob -- Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d