• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ColorSync, rendering intents and Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ColorSync, rendering intents and Cocoa


  • Subject: Re: ColorSync, rendering intents and Cocoa
  • From: "R. Scott Thompson" <email@hidden>
  • Date: Thu, 2 Dec 2004 15:24:15 -0600


On Dec 2, 2004, at 3:15 PM, email@hidden 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>);

Scott

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: ColorSync, rendering intents and Cocoa
      • From: Ricky Sharp <email@hidden>
References: 
 >ColorSync, rendering intents and Cocoa (From: email@hidden)

  • Prev by Date: Re: Tracking Rectangles Vs Manual Logic
  • Next by Date: RE: Swapping isa's (was Re: Hex Edit controls (resknife))
  • Previous by thread: ColorSync, rendering intents and Cocoa
  • Next by thread: Re: ColorSync, rendering intents and Cocoa
  • Index(es):
    • Date
    • Thread