• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Convert GWorldPtr into a NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Convert GWorldPtr into a NSImage (From: Eric Gorr <email@hidden>)
 >Re: Convert GWorldPtr into a NSImage (From: Graham Cox <email@hidden>)

  • Prev by Date: iPhoto API to access the shared photos
  • Next by Date: Re: QTMovieLayer and QCCompositionLayer Don't Start
  • Previous by thread: Re: Convert GWorldPtr into a NSImage
  • Next by thread: Re: Convert GWorldPtr into a NSImage
  • Index(es):
    • Date
    • Thread