Re: Quartz 2d and Colour
Re: Quartz 2d and Colour
- Subject: Re: Quartz 2d and Colour
- From: David Burnett <email@hidden>
- Date: Thu, 12 Jun 2003 18:50:59 +0100
On Thursday, June 12, 2003, at 12:46 am, John C. Randolph wrote:
It looks to me like you're doing a lot more work here than you need
to. Why not just create an NSImage, lockFocus on it, do your drawing,
and then composite it in whenever you want?
I'd tried setting focus on an NSImage then getting the currentContext
to draw on first but that was grayscale too.
The trouble with that is that there's a lot less
to work with. As I'm fairly new to Cocoa and had necer used Quartz
before
I figured that I was getting a grayscale image because I was being
provided with a grayscale context for the NSImage. So I tied it the hard
way :-) where I would have more control over the colourspaces.
And still its grayscale.
Dave
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.