• 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: Obtaining unpremultiplied bitmap from PNG file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obtaining unpremultiplied bitmap from PNG file


  • Subject: Re: Obtaining unpremultiplied bitmap from PNG file
  • From: Shamyl Zakariya <email@hidden>
  • Date: Wed, 13 Jun 2007 17:28:58 -0400

As far as I can tell, Cocoa simply won't give you non-premultiplied bitmap data. The CG constant kCGImageAlphaLast ( IIRC ) is there, but isn't actually implemented.

So, in my OpenGL apps I use libPNG directly. It's annoying to have to do so, but what can you do?

email@hidden


On Jun 13, 2007, at 4:26 PM, Chiharu Hirono wrote:

I want obtain bitmap data from PNG file without premultiplied.
"NSBitmapImageRep Class Reference" (http://developer.apple.com/ documentation/Cocoa/Reference/ApplicationKit/Classes/ NSBitmapImageRep_Class/index.html) says:


If you need to work with unpremultiplied data, you should use Quartz, specifically CGImageCreate with kCGImageAlphaLast.

But there are no way to obtain bitmap from CGImageCreate. How can I get bitmap data?

C. Hirono
email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Obtaining unpremultiplied bitmap from PNG file
      • From: David Duncan <email@hidden>
References: 
 >Obtaining unpremultiplied bitmap from PNG file (From: Chiharu Hirono <email@hidden>)

  • Prev by Date: Getting Data from Del.icio.us
  • Next by Date: Re: WebKit or something else?
  • Previous by thread: Obtaining unpremultiplied bitmap from PNG file
  • Next by thread: Re: Obtaining unpremultiplied bitmap from PNG file
  • Index(es):
    • Date
    • Thread