cocoa - disabling color correction in quartz 2d -


OK, I know that it is not possible to actually disable color correction in quartz, which I see is one There is a device-independent color space setting, which does not change RGB values ​​which I attract in a CGLier.

I tried an ICC profile from all libraries, they make changes in all the colors.

This has given me the best result:

  const CGFloat white point [] = {0.95047, 1.0, 1.08883}; Const CGFloat Black Point [] = {0, 0, 0}; Const CGFloat gamma [] = {1, 1, 1}; Kong CGFloat matrix [=] {0.449695, 0.244634, 0.0251829, 0.316251, 0.672034, 0.141184, 0.18452, 0.0833318, 0.922602}; CGColorSpaceRef colorSpace = CGColorSpaceCreateCalibratedRGB (white point, blackpoint, gamma, matrix);  

This apple uses RGB color conversion matrix and D65 white point.

The colors still do a little change, though I am very happy compared to this device-dependent settings.

How do I write TGF to CGLair:

  CImage * image = [CImage Image with Cigellier: CGLier]; NSBitmapImageRep * bitmapImage = [[NSBitmapImageRep alloc] initWithCIImage: image]; [[Bitmap image TIFF Representation] writeToFile: Filename atomically: Yes];  

Any help would be greatly appreciated.

Why not declare your colors your destination CGLayer ? To become part of the same color space for

, the doco for CGColorSpaceCreateDeviceRGB says the same:

< / Html>

Comments