Re: How to render 8-bit bitmap image representation?
Re: How to render 8-bit bitmap image representation?
- Subject: Re: How to render 8-bit bitmap image representation?
- From: David Duncan <email@hidden>
- Date: Mon, 25 Jun 2007 10:38:49 -0700
On Jun 24, 2007, at 12:27 PM, Tron Thomas wrote:
How can I get a rendering for a bitmap image representation that
has the 8-bit pixel format I want?
It sounds like you want a lot of control over your drawing, and it
may be better for you to use Quartz 2D directly instead of NSImage
and friends. In this case, you can use CGBitmapContextCreate() to
create a grayscale bitmapped graphics context that renders to a block
of memory crafted to your specifications. If you wish to draw via
Cocoa, then you can create an NSGraphicsContext from the CGContextRef
that you got using +graphicsContextWithGraphicsPort:flipped:.
--
David Duncan
Apple DTS Quartz and Printing
email@hidden
_______________________________________________
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