Skip navigation.
 
mlRe: ColorSync, rendering intents and Cocoa
FROM : Ricky Sharp
DATE : Thu Dec 02 22:35:34 2004

On Dec 2, 2004, at 3:24 PM, R. Scott Thompson wrote:

> On Dec 2, 2004, at 3:15 PM, <email_removed> wrote:

>> I am writing an application to experiment with rendering intents.
>>
>> Is it practical to use ColorSync in a Cocoa app or am I better off
>> with Carbon / Quartz?
>>
>> Is just using Quartz within Cocoa a feasible alternative?
>>
>> I haven't been able to figure out a logical way to do this from the
>> documentation and none of the samples cover rendering intents.

>
> I haven't tried it myself from Cocoa, but I would think you can use a
> mixture of Quartz and Cocoa.
>
> When you are drawing with Cocoa, you can get the current CGContext
> using:
>
> CGContextRef currentContext = (CGContextRef) [[NSGraphicsContext
> currentContext] graphicsPort];
>
> >From there you should be able to use:
>
> CGContextSetRenderingIntent(currentContext, <whichever
> CGColorRenderingIntent you care to use>);


You can definitely mix in Quartz calls just as outlined above.  While I
haven't specifically used CGContextSetRenderingIntent, I have made
several CG API calls with success.

It may also be worth filing an enhancement request to add this "intent"
API to NSGraphicsContext.

___________________________________________________________
Ricky A. Sharp        mailto:<email_removed>
Instant Interactive(tm)  http://www.instantinteractive.com

Related mailsAuthorDate
mlColorSync, rendering intents and Cocoa pulsifer Dec 2, 22:15
mlRe: ColorSync, rendering intents and Cocoa R. Scott Thompson Dec 2, 22:24
mlRe: ColorSync, rendering intents and Cocoa Ricky Sharp Dec 2, 22:35