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?



Does the imageImporter subtype that you are using support alpha. I'd imagine that a default bmp importer would not enforce an existing alpha. My ยข.02

-p

-----Original Message-----
From: quicktime-api-bounces+parisman=email@hidden [mailto:quicktime-api-bounces+parisman=email@hidden] On Behalf Of Jim Wintermyre
Sent: Saturday, December 18, 2004 5:01 AM
To: email@hidden
Subject: Preserving alpha channel in BMP to GWorld?


Hi -

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
 _______________________________________________
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



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.