Class CmykColorHelper

CmykColorHelper class

Helper methods to work with CMYK color presented as a signed 32-bit integer value. Provides the similar API as the CmykColor struct. It’s more lightweight because CMYK color is presented just as Int32 rather than structure with internal fields. Please prefer to use static methods of this class when possible instead of the deprecated CmykColor struct.

public static class CmykColorHelper

Methods

NameDescription
static FromComponents(int, int, int, int)Creates CMYK from a 32-bit cyan, magenta, yellow and black values.
static GetC(int)Gets the cyan component value.
static GetK(int)Gets the black component value.
static GetM(int)Gets the magenta component value.
static GetY(int)Gets the yellow component value.
static ToArgb(int)The conversion from CMYK color to ARGB color.
static ToArgb(int[])The conversion from CMYK colors to ARGB colors.
static ToArgb32(int[])The conversion from CMYK colors to ARGB colors.
static ToArgbIcc(int)The conversion from CMYK color to ARGB Color using Icc conversion with default profiles.
static ToArgbIcc(int[])The conversion from CMYK colors to ARGB colors using Icc conversion with default profiles.
static ToArgbIcc(int, Stream, Stream)The conversion from CMYK color to ARGB color using Icc conversion with custom profile.
static ToArgbIcc(int[], Stream, Stream)The conversion from CMYK colors to ARGB colors using Icc conversion with custom profiles.
static ToCmyk(Color)The conversion from ARGB color to CMYK color.
static ToCmyk(Color[])The conversion from ARGB colors to CMYK colors.
static ToCmyk(int)The conversion from ARGB color to CMYK color.
static ToCmyk(int[])The conversion from ARGB colors to CMYK colors.
static ToCmykaBytes(int[], int, int)Converts ARGB to CMYKA (with transparency).
static ToCmykaIccBytes(int[], int, int, Stream, Stream)Converts RGB to CMYKA (with alpha) using custom ICC profiles.
static ToCmykBytes(int[], int, int)Converts ARGB to CMYK.
static ToCmykIcc(Color)The conversion from ARGB color to CMYK color using Icc conversion with default profiles.
static ToCmykIcc(Color[])The conversion from ARGB colors to CMYK colors using Icc conversion with default profiles.
static ToCmykIcc(int)The conversion from ARGB color to CMYK color using Icc conversion with default profiles.
static ToCmykIcc(int[])The conversion from ARGB colors to CMYK colors using Icc conversion with default profiles.
static ToCmykIcc(Color, Stream, Stream)The conversion from ARGB color to CMYK color using Icc conversion with custom profiles.
static ToCmykIcc(Color[], Stream, Stream)The conversion from ARGB colors to CMYK colors using Icc conversion with custom profiles.
static ToCmykIcc(int, Stream, Stream)The conversion from ARGB color to CMYK color using Icc conversion with custom profiles.
static ToCmykIcc(int[], Stream, Stream)The conversion from ARGB colors to CMYK colors using Icc conversion with custom profiles.
static ToCmykIccBytes(int[], int, int, Stream, Stream)Converts RGB to CMYK using custom ICC profiles.
static ToPsdCmykIcc(int)The conversion from ARGB color to CMYK color using Icc conversion with default profiles. Uses PSD CMYK format KCMY byte order with inverted channel values.
static ToPsdCmykIcc(int[])The conversion from ARGB colors to CMYK colors using Icc conversion with default profiles. Uses PSD CMYK format KCMY byte order with inverted channel values.
static ToPsdCmykIcc(int, Stream, Stream)The conversion from ARGB color to CMYK color using Icc conversion with custom profiles.
static ToPsdCmykIcc(int[], Stream, Stream)The conversion from ARGB colors to CMYK colors using Icc conversion with custom profiles. Uses PSD CMYK format KCMY byte order with inverted channel values.

See Also