convertCmykToSrgb
fun convertCmykToSrgb(width: Int, height: Int, ink: ByteArray, profile: ColorProfile, intent: RenderingIntent = RenderingIntent.Perceptual): KiteBitmap?(source)
CMYK ink converted to opaque sRGB through the CMYK profile with intent, or null when profile is not a CMYK profile this reads. ink holds four samples a pixel, cyan, magenta, yellow and black, from no ink (0) to full (255), as a PDF's DeviceCMYK or ICCBased samples run; a CMYK JPEG's Adobe samples run the other way, and decode turns them over itself.
Throws
fun convertCmykToSrgb(width: Int, height: Int, ink: ShortArray, profile: ColorProfile, intent: RenderingIntent = RenderingIntent.Perceptual): KiteBitmap16?(source)
convertCmykToSrgb at 16 bits a sample, as RGB at full precision.