Re: Convert GWorldPtr into a NSImage
Re: Convert GWorldPtr into a NSImage
- Subject: Re: Convert GWorldPtr into a NSImage
- From: glenn andreas <email@hidden>
- Date: Tue, 06 Jan 2009 17:54:46 -0600
On Jan 6, 2009, at 5:42 PM, Graham Cox wrote:
It should be straightforward to wrap an NSBitmapImageRep around some
of the GWorld formats. Not all of them are supported but ARGB 32-bit
is. While GWorlds do not have an alpha channel QuickDraw does
preserve the bits in the unused byte, but you will need to address
the issue of setting those bits yourself somehow.
No, it doesn't.
QuickDraw will often, but not always, zero out the unused byte (and in
some operations, do other things to it - for example, there are times
when CopyBits will copy the extra byte from the source to the
destination, and times when it won't)
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
JSXObjC | the easy way to unite JavaScript and Objective C
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden