# xyzToCmyk

public final DoubleArray xyzToCmyk(Context context, @Size(value = 3) DoubleArray xyzIn, @Size(value = 3) DoubleArray xyzRef, Boolean bpc)

Calculates CMYK value from XYZ input using built in lookup tables

#### Return

CMYK value output, unity scale (element order C, M, Y, K)

#### Parameters

context

Context

xyzIn

XYZ colour input, unity scale (element order X, Y, Z)

xyzRef

Reference white value for XYZIn, unity scale (element order X, Y, Z)

bpc

set to true to perform black point compensation

public final DoubleArray xyzToCmyk(@Size(value = 3) DoubleArray xyzIn, @Size(value = 3) DoubleArray xyzRef, Boolean bpc, Array<DoubleArray> m, Array<IntArray> inputCurves, Array<IntArray> clut, Array<IntArray> outputCurves)

Calculates CMYK value from XYZ using lookup tables provided as `inputCurves` arguments

#### Return

CMYK value on unity scale (element order C, M, Y, K)

#### Parameters

xyzIn

XYZ colour, unity scale (element order X, Y, Z)

xyzRef

Reference white value for xyzIn, unity scale (element order X, Y, Z)

bpc

Black point compensation enabled / disabled

m

3x3 Extracted from ICC profile: transformation matrix to perform on LAB value (code only tested with identity matrix)

inputCurves

256x3 Extracted from ICC profile: InputCurves

clut

35937x4: Extracted from ICC profile: Lab to CMYK LUT (flattened 33x33x33 array with 4 channels, one each for C,M,Y,K)

outputCurves

256x4: Extracted from ICC profile: OutputCurves