| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Here's the technote you want (2035): http://developer.apple.com/technotes/tn/tn2035.html. It explains how Quartz and color management work together, and gives some rough definition of the basic concepts.
Second, the Quartz code you want to use is pretty much:
CMProfileRef aProfile;
CMGetDefaultProfileBySpace(cmRGBData, &aProfile);
if ( aProfile == NULL ) return PF_Err_OUT_OF_MEMORY;
colorSpace = CGColorSpaceCreateWithPlatformColorSpace( aProfile );
CMCloseProfile( aProfile );
The CGColorSpaceCreateWithPlatformColorSpace() is how you access ColorSync on the Mac, *not* using the ICC-based functions. It's very confusing. Look up CMGetDefaultProfileBySpace() and you'll see other constants which you can supply. You change these profiles in the ColorSync Utility app.
Also, go to OmniGroup.com and download OmniAppKit. It has some nice ColorSync-relelated code for Cocoa that you can use.
_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden This email sent to email@hidden
| References: | |
| >Cocoa, Quartz, Colorspaces and ColorSync (From: Robert Clair <email@hidden>) | |
| >Re: Cocoa, Quartz, Colorspaces and ColorSync (From: Eric Ocean <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.