Struct CmykColor

Struct CmykColor

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging.dll (25.2.0)

The CMYK color of pixel.

public struct CmykColor

Inherited Members

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

C

Gets the cyan component value of this Aspose.Imaging.Color structure.

public byte C { get; }

Property Value

byte

Empty

Gets the empty.

public static CmykColor Empty { get; }

Property Value

CmykColor

IsEmpty

Gets a value indicating whether this Aspose.Imaging.Color structure is uninitialized.

public bool IsEmpty { get; }

Property Value

bool

K

Gets the black component value of this Aspose.Imaging.Color structure.

public byte K { get; }

Property Value

byte

M

Gets the magenta component value of this Aspose.Imaging.Color structure.

public byte M { get; }

Property Value

byte

Y

Gets the yellow component value of this Aspose.Imaging.Color structure.

public byte Y { get; }

Property Value

byte

Methods

Equals(object)

Determines whether the specified System.Object, is equal to this instance.

public override bool Equals(object obj)

Parameters

obj object

The System.Object to compare with this instance.

Returns

bool

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

FromParams(int, int, int, int)

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

[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 Aspose.Imaging.CmykColor.

GetHashCode()

The get hash code.

public override int GetHashCode()

Returns

int

The System.Int32.

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 Aspose.Imaging.CmykColorHelper.ToArgb32(System.Int32[]).

[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 color to CMYKColor. This method is deprecated. Please use more effective Aspose.Imaging.CmykColorHelper.ToCmyk(System.Int32[]).

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

Parameters

argbPixels int[]

The pixels of 32-bit ARGB format.

Returns

CmykColor[]

The Aspose.Imaging.CmykColor[].

ToCmyk(int)

The conversion from 32-bit ARGB to CMYKColor. This method is deprecated. Please use more effective Aspose.Imaging.CmykColorHelper.ToCmyk(System.Int32).

[Obsolete]
public static CmykColor ToCmyk(int argbPixel)

Parameters

argbPixel int

The pixel of 32-bit ARGB format.

Returns

CmykColor

The Aspose.Imaging.CmykColor.

ToColor(CmykColor[])

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

[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.

ToColor(CmykColor)

The conversion from CMYKColor to Color. This method is deprecated. Please use more effective Aspose.Imaging.CmykColorHelper.ToArgb(System.Int32).

[Obsolete]
public static Color ToColor(CmykColor cmykPixel)

Parameters

cmykPixel CmykColor

The pixels of CMYKColor type in CMYK format.

Returns

Color

The Aspose.Imaging.Color[].

ToColorIcc(CmykColor[])

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

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

Parameters

cmykPixels CmykColor[]

The pixels of CMYKColor type in CMYK format.

Returns

Color[]

The Aspose.Imaging.Color[].

ToColorIcc(CmykColor)

The conversion from CMYKColor to Color using icc conversion with default profiles. This method is deprecated. Please use more effective Aspose.Imaging.CmykColorHelper.ToArgbIcc(System.Int32).

[Obsolete]
public static Color ToColorIcc(CmykColor cmykPixel)

Parameters

cmykPixel CmykColor

The pixel of CMYKColor type in CMYK format.

Returns

Color

The Aspose.Imaging.Color.

ToColorIcc(CmykColor[], Stream, Stream)

The conversion from CMYKColor to Color using icc conversion. This method is deprecated. Please use more effective Aspose.Imaging.CmykColorHelper.ToArgbIcc(System.Int32[],System.IO.Stream,System.IO.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 Aspose.Imaging.Color[].

ToColorIcc(CmykColor, Stream, Stream)

The conversion from CMYKColor to Color using icc conversion. This method is deprecated. Please use more effective Aspose.Imaging.CmykColorHelper.ToArgbIcc(System.Int32,System.IO.Stream,System.IO.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 Aspose.Imaging.Color.

ToValue()

The to value.

public long ToValue()

Returns

long

The long CMYK value.