|
Loading...
|
quartz-dev@lists.apple.com
[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 changinggoing to another API.
CGContextRef drawContext = CGBitmapContextCreate(NULL, drawingSize.width,drawingSize.height, 8, 4 * drawingSize.width, colorSpace, kCGImageAlphaPremultipliedFirst);CGLayerRef drawLayer = CGLayerCreateWithContext(drawContext, drawingSize,NULL);
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: http://lists.apple.com/mailman/options/quartz-dev/alexiscircle%40gmail.com This email sent to [EMAIL PROTECTED]
- disabling color correction in quartz 2d cocoa 2009/02/02
- Re: disabling color correction in quartz 2d Greg VanSickle 2009/02/02
- Re: disabling color correction in quartz 2d cocoa 2009/02/02
- Re: disabling color correction in quartz 2d Raphaël Dingé 2009/02/02
- Re: disabling color correction in quartz 2d lajos kamocsay 2009/02/03
- Re: disabling color correction in quartz 2d Raphaël Dingé 2009/02/03
- Re: disabling color correction in quartz 2d lajos kamocsay 2009/02/03
- Re: disabling color correction in quartz 2d David Duncan 2009/02/03 <=
- Re: disabling color correction in quartz 2d lajos kamocsay 2009/02/03
- Re: disabling color correction in quartz 2d David Duncan 2009/02/03
- Re: disabling color correction in quartz 2d lajos kamocsay 2009/02/04
- Re: disabling color correction in quartz 2d Raphaël Dingé 2009/02/04
- Re: disabling color correction in quartz 2d lajos kamocsay 2009/02/05
- Re: disabling color correction in quartz 2d David Duncan 2009/02/05
- Re: disabling color correction in quartz 2d lajos kamocsay 2009/02/05
- Re: disabling color correction in quartz 2d David Duncan 2009/02/05
- Re: disabling color correction in quartz 2d Graeme Gill 2009/02/04
- Re: disabling color correction in quartz 2d lajos kamocsay 2009/02/04