Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CGColorSpaceRef cs, default_cs;
- CGDataProviderRef profile;
- const CGFloat ranges[] = {0.0,255.0,0.0,255.0,0.0,255.0};
- default_cs = CGColorSpaceCreateDeviceRGB();
- profile = CGDataProviderCreateWithURL((CFURLRef)[NSURL fileURLWithPath:@"/System/Library/ColorSync/Profiles/Generic XYZ Profile.icc"]);
- cs = CGColorSpaceCreateICCBased(3, ranges, profile, default_cs);
- CFDataRef dataref = CGColorSpaceCopyICCProfile(cs);
- CGColorSpaceRef copycs = CGColorSpaceCreateWithICCProfile(dataref);
Add Comment
Please, Sign In to add comment