• 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: Remove alpha channel from uiimage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remove alpha channel from uiimage


  • Subject: Re: Remove alpha channel from uiimage
  • From: David Duncan <email@hidden>
  • Date: Tue, 28 Jan 2014 13:10:43 -0800

On Jan 28, 2014, at 12:37 PM, Peng Gu <email@hidden> wrote:

> kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Little


You just asked Core Graphics to make a context with alpha, and thus an image with alpha. Core Animation doesn’t enumerate all the pixels of the image to determine if there is alpha, it just looks at the image flags.

If you don’t want alpha, use kCGImageAlphaNoneSkipFirst instead.
--
David Duncan

_______________________________________________

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


  • Follow-Ups:
    • Re: Remove alpha channel from uiimage
      • From: Peng Gu <email@hidden>
References: 
 >Remove alpha channel from uiimage (From: Peng Gu <email@hidden>)

  • Prev by Date: Remove alpha channel from uiimage
  • Next by Date: Re: Remove alpha channel from uiimage
  • Previous by thread: Remove alpha channel from uiimage
  • Next by thread: Re: Remove alpha channel from uiimage
  • Index(es):
    • Date
    • Thread