• 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: 16, 32 or 64 bit Bitmap data for a CIImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 16, 32 or 64 bit Bitmap data for a CIImage


  • Subject: Re: 16, 32 or 64 bit Bitmap data for a CIImage
  • From: Scott Thompson <email@hidden>
  • Date: Sun, 19 Mar 2006 07:33:17 -0600


On Mar 18, 2006, at 2:23 PM, Robert Brown wrote:

The problem is, NSBitmapImageRep and NSGraphicsContext only appear to support 8-bit/channel images. How do I get a bitmap that's 16- bit integer or 32- or 64-bit float (ie, the full bit depth of the Core Image system)?

Thanks!

I'm not familiar with a way to do that through an Objective-C API, but you can use Core Graphics directly for the 16 bpp integer and 32 bpp floating point representations. You would call CGBitmapContextCreate with the appropriate settings and then create a CIContext from that.


(see "Supported Pixel Formats" at
<http://developer.apple.com/documentation/GraphicsImaging/Conceptual/ drawingwithquartz2d/dq_context/chapter_3_section_4.html>)


Scott

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >16, 32 or 64 bit Bitmap data for a CIImage (From: Robert Brown <email@hidden>)

  • Prev by Date: Re: app controller's dealloc not called
  • Next by Date: Re: Embedding a Framework within a Framework
  • Previous by thread: Re: 16, 32 or 64 bit Bitmap data for a CIImage
  • Next by thread: Embedding a Framework within a Framework
  • Index(es):
    • Date
    • Thread