Table of Contents

Struct CmykColor

Namespace
Aspose.Imaging
Assembly
Aspose.Imaging.dll

The CMYK color of pixel.

public struct CmykColor
Inherited Members

Properties

C

Gets the cyan component value of this Color structure.

public byte C { get; }

Property Value

byte

The cyan component value of this Color.

Empty

Gets the empty.

public static CmykColor Empty { get; }

Property Value

CmykColor

IsEmpty

Gets a value indicating whether this Color structure is uninitialized.

public bool IsEmpty { get; }

Property Value

bool

This property returns true if this color is uninitialized; otherwise, false.

K

Gets the black component value of this Color structure.

public byte K { get; }

Property Value

byte

The black component value of this Color.

M

Gets the magenta component value of this Color structure.

public byte M { get; }

Property Value

byte

The magenta component value of this Color.

Y

Gets the yellow component value of this Color structure.

public byte Y { get; }

Property Value

byte

The yellow component value of this Color.

Methods

Equals(object)

Determines whether the specified object, is equal to this instance.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with this instance.

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

FromParams(int, int, int, int)

Creates a CmykColor structure from a 32-bit cyan, magenta, yellow and black values. This method is deprecated. Please use more effective FromComponents(int, int, int, int).

[Obsolete]
public static CmykColor FromParams(int cyan, int magenta, int yellow, int black)

Parameters

cyan int

The cyan component. Valid values are 0 through 255.

magenta int

The magenta component. Valid values are 0 through 255.

yellow int

The yellow component. Valid values are 0 through 255.

black int

The black component. Valid values are 0 through 255.

Returns

CmykColor

The CmykColor.

GetHashCode()

The get hash code.

public override int GetHashCode()

Returns

int

The int.

ToArgb32(CmykColor[])

The conversion from CMYKColor to 32-bit ARGB Color using icc conversion with default profiles. This method is deprecated. Please use more effective ToArgb32(int[]).

[Obsolete]
public static int[] ToArgb32(CmykColor[] cmykPixels)

Parameters

cmykPixels CmykColor

The pixels of CMYKColor type in CMYK format.

Returns

int[]

The array of the 32-bit ARGB color.

ToCmyk(int)

The conversion from 32-bit ARGB to CMYKColor. This method is deprecated. Please use more effective ToCmyk(int).

[Obsolete]
public static CmykColor ToCmyk(int argbPixel)

Parameters

argbPixel int

The pixel of 32-bit ARGB format.

Returns

CmykColor

The CmykColor.

ToCmyk(int[])

The conversion from 32-bit ARGB color to CMYKColor. This method is deprecated. Please use more effective ToCmyk(int[]).

[Obsolete]
public static CmykColor[] ToCmyk(int[] argbPixels)

Parameters

argbPixels int[]

The pixels of 32-bit ARGB format.

Returns

CmykColor

The CmykColor.

ToColor(CmykColor)

The conversion from CMYKColor to Color. This method is deprecated. Please use more effective ToArgb(int).

[Obsolete]
public static Color ToColor(CmykColor cmykPixel)

Parameters

cmykPixel CmykColor

The pixels of CMYKColor type in CMYK format.

Returns

Color

The Color[].

ToColor(CmykColor[])

The conversion from CMYKColor to Color using icc conversion with default profiles. This method is deprecated. Please use more effective ToArgb(int[]).

[Obsolete]
public static Color[] ToColor(CmykColor[] cmykPixels)

Parameters

cmykPixels CmykColor

The pixels of CMYKColor type in CMYK format.

Returns

Color[]

The array of the ARGB colors.

ToColorIcc(CmykColor)

The conversion from CMYKColor to Color using icc conversion with default profiles. This method is deprecated. Please use more effective ToArgbIcc(int).

[Obsolete]
public static Color ToColorIcc(CmykColor cmykPixel)

Parameters

cmykPixel CmykColor

The pixel of CMYKColor type in CMYK format.

Returns

Color

The Color.

ToColorIcc(CmykColor, Stream, Stream)

The conversion from CMYKColor to Color using icc conversion. This method is deprecated. Please use more effective ToArgbIcc(int, Stream, Stream).

[Obsolete]
public static Color ToColorIcc(CmykColor cmykPixel, Stream cmykIccStream, Stream rgbIccStream)

Parameters

cmykPixel CmykColor

The pixel of CMYKColor type in CMYK format.

cmykIccStream Stream

The stream containing icc cmyk profile.

rgbIccStream Stream

The stream containing icc rgb profile.

Returns

Color

The Color.

ToColorIcc(CmykColor[])

The conversion from CMYKColor to Color using icc conversion with default profiles. This method is deprecated. Please use more effective ToArgbIcc(int[]).

[Obsolete]
public static Color[] ToColorIcc(CmykColor[] cmykPixels)

Parameters

cmykPixels CmykColor

The pixels of CMYKColor type in CMYK format.

Returns

Color[]

The Color[].

ToColorIcc(CmykColor[], Stream, Stream)

The conversion from CMYKColor to Color using icc conversion. This method is deprecated. Please use more effective ToArgbIcc(int[], Stream, Stream).

[Obsolete]
public static Color[] ToColorIcc(CmykColor[] cmykPixels, Stream cmykIccStream, Stream rgbIccStream)

Parameters

cmykPixels CmykColor

The pixels of CMYKColor type in CMYK format.

cmykIccStream Stream

The stream containing icc cmyk profile.

rgbIccStream Stream

The stream containing icc rgb profile.

Returns

Color[]

The Color[].

ToValue()

The to value.

public long ToValue()

Returns

long

The long CMYK value.