Re: 16, 32 or 64 bit Bitmap data for a CIImage
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