Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preserving alpha channel in BMP to GWorld?



Jim,

Try setting the 'cmpCount' of the GWorld to 4. Apple's BMP encoder doesn't support alpha, but if the decoder does, that should do the trick.

Andreas Wittenstein
BitJazz Inc.
http://www.bitjazz.com/sheervideo/

I have some BMP format data which contains an alpha channel. I am trying to load this image into a 32-bit GWorld (created with NewGWorld), and preserve the alpha channel in the upper byte of each pixel. At some later point I would then draw this GWorld using the alpha channel using DecompressImage() with one of the alpha transfer graphics modes. I've got the BMP graphics importer set up and drawing the image into the GWorld using GraphicsImportDraw(), but it doesn't preserve the alpha channel. Is there something special I need to do to get it to copy the alpha channel as well as the RGB data into the GWorld?

Thanks,
Jim

_______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-API mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden
References: 
 >Preserving alpha channel in BMP to GWorld? (From: Jim Wintermyre <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.