• 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: j o a r <email@hidden>
  • Date: Fri, 28 Sep 2001 03:15:51 +0200

On Friday, September 28, 2001, at 03:04 , Andrew Platzer wrote:

I'm missing a [myBitmap imageAlpha] method in NSBitmapImageRep...
Do you mean [myBitmap hasAlpha]?
- (BOOL)hasAlpha is defined in NSImageRep.h

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.

j o a r


  • Follow-Ups:
    • Re: Alpha info from NSBitmapImageRep?
      • From: Andrew Platzer <email@hidden>
References: 
 >Re: Alpha info from NSBitmapImageRep? (From: Andrew Platzer <email@hidden>)

  • Prev by Date: Re: Alpha info from NSBitmapImageRep?
  • Next by Date: Re: Alpha info from NSBitmapImageRep?
  • Previous by thread: Re: Alpha info from NSBitmapImageRep?
  • Next by thread: Re: Alpha info from NSBitmapImageRep?
  • Index(es):
    • Date
    • Thread