• 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: Alpha info from NSBitmapImageRep?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alpha info from NSBitmapImageRep?


  • Subject: Re: Alpha info from NSBitmapImageRep?
  • From: Andrew Platzer <email@hidden>
  • Date: Thu, 27 Sep 2001 18:22:47 -0700

On Thursday, September 27, 2001, at 06:15 , j o a r wrote:
It's something, but it doesn't help me to decide which of these to use:
kCGImageAlphaNone,
kCGImageAlphaPremultipliedLast, /* For example, premultiplied RGBA *
/
kCGImageAlphaPremultipliedFirst, /* For example, premultiplied ARGB *
/
kCGImageAlphaLast, /* For example, non-premultiplied RGBA */
kCGImageAlphaFirst, /* For example, non-premultiplied ARGB */
kCGImageAlphaNoneSkipLast, /* Equivalent to kCGImageAlphaNone. */
kCGImageAlphaNoneSkipFirst
A YES from hasAlpha doesn't tell me where that alpha channel is at - first or last, premultiplied or not. A NO is defenitely useful though, since then I can use kCGImageAlphaNone.

AppKit bitmap images are always premultiplied RGBA so use kCGImageAlphaPremultipliedLast.

Andrew
__________________________________________________________________
A n d r e w P l a t z e r
A p p l i c a t i o n F r a m e w o r k s
A p p l e


References: 
 >Re: Alpha info from NSBitmapImageRep? (From: j o a r <email@hidden>)

  • Prev by Date: Re: Alpha info from NSBitmapImageRep?
  • Next by Date: NSWindow without titlebar
  • Previous by thread: Re: Alpha info from NSBitmapImageRep?
  • Next by thread: Java delegate for NSBrowser?
  • Index(es):
    • Date
    • Thread