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
Empty
Gets the empty.
public static CmykColor Empty { get; }
Property Value
IsEmpty
Gets a value indicating whether this Aspose.Imaging.Color structure is uninitialized.
public bool IsEmpty { get; }
Property Value
K
Gets the black component value of this Aspose.Imaging.Color structure.
public byte K { get; }
Property Value
M
Gets the magenta component value of this Aspose.Imaging.Color structure.
public byte M { get; }
Property Value
Y
Gets the yellow component value of this Aspose.Imaging.Color structure.
public byte Y { get; }
Property Value
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
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
The Aspose.Imaging.CmykColor.
GetHashCode()
The get hash code.
public override int GetHashCode()
Returns
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
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
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
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
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
The Aspose.Imaging.Color.
ToValue()
The to value.
public long ToValue()
Returns
The long CMYK value.