Global Variable

kCGColorSpaceExtendedGray

The extended gray color space.

Declaration

const CFStringRef kCGColorSpaceExtendedGray;

Discussion

This color space has the same colorimetry as kCGColorSpaceGenericGrayGamma2_2; in addition, you may encode component values below 0.0 and above 1.0. Negative values are encoded as the signed reflection of the original encoding function, as shown below

extendedGrayTransferFunction(x) = sign(x) ✖️ gamma22Function(abs(x))