Guest User

Untitled

a guest
Jan 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. CGColorSpaceRef cs, default_cs;
  2. CGDataProviderRef profile;
  3. const CGFloat ranges[] = {0.0,255.0,0.0,255.0,0.0,255.0};
  4.  
  5. default_cs = CGColorSpaceCreateDeviceRGB();
  6. profile = CGDataProviderCreateWithURL((CFURLRef)[NSURL fileURLWithPath:@"/System/Library/ColorSync/Profiles/Generic XYZ Profile.icc"]);
  7. cs = CGColorSpaceCreateICCBased(3, ranges, profile, default_cs);
  8.  
  9.  
  10. CFDataRef dataref = CGColorSpaceCopyICCProfile(cs);
  11.  
  12. CGColorSpaceRef copycs = CGColorSpaceCreateWithICCProfile(dataref);
Add Comment
Please, Sign In to add comment