[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: disabling color correction in quartz 2d David Duncan Tue Feb 03 20:00:38 2009

On Feb 3, 2009, at 6:59 PM, lajos kamocsay wrote:

The drawing code has already been written using Quartz2d and CGLayer, so I'm hoping to figure out how to get the colors consistent without changing
going to another API.

CGContextRef drawContext = CGBitmapContextCreate(NULL, drawingSize.width,
drawingSize.height, 8, 4 * drawingSize.width,
colorSpace, kCGImageAlphaPremultipliedFirst);
CGLayerRef drawLayer = CGLayerCreateWithContext(drawContext, drawingSize,

It is unclear as to why your doing this. Why not just draw it directly to the bitmap context and create an image from that (using CGBitmapContextCreateImage)? Once you have that image you can trivially create a TIFF or an NSBitmapImageRep from that image.
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.

David Duncan

Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      ([EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:

This email sent to [EMAIL PROTECTED]