Struct CmykColor
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
Empty
Gets the empty.
public static CmykColor Empty { get; }
Property Value
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
M
Gets the magenta component value of this Color structure.
public byte M { get; }
Property Value
Y
Gets the yellow component value of this Color structure.
public byte Y { get; }
Property Value
Methods
Equals(object)
Determines whether the specified object, is equal to this instance.
public override bool Equals(object obj)
Parameters
Returns
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
intThe cyan component. Valid values are 0 through 255.
magenta
intThe magenta component. Valid values are 0 through 255.
yellow
intThe yellow component. Valid values are 0 through 255.
black
intThe black component. Valid values are 0 through 255.
Returns
GetHashCode()
The get hash code.
public override int GetHashCode()
Returns
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
CmykColorThe 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
intThe pixel of 32-bit ARGB format.
Returns
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
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
CmykColorThe pixels of CMYKColor type in CMYK format.
Returns
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
CmykColorThe 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
CmykColorThe pixel of CMYKColor type in CMYK format.
Returns
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
CmykColorThe pixel of CMYKColor type in CMYK format.
cmykIccStream
StreamThe stream containing icc cmyk profile.
rgbIccStream
StreamThe stream containing icc rgb profile.
Returns
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
CmykColorThe pixels of CMYKColor type in CMYK format.
Returns
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
CmykColorThe pixels of CMYKColor type in CMYK format.
cmykIccStream
StreamThe stream containing icc cmyk profile.
rgbIccStream
StreamThe stream containing icc rgb profile.
Returns
ToValue()
The to value.
public long ToValue()
Returns
- long
The long CMYK value.