public class CmykColor extends com.aspose.ms.lang.Struct<CmykColor>
The CMYK color of pixel.
Constructor and Description |
---|
CmykColor() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
CmykColor |
Clone() |
void |
CloneTo(CmykColor that) |
boolean |
equals(Object obj)
Determines whether the specified
Object , is equal to this instance. |
static CmykColor |
fromParams(int cyan,
int magenta,
int yellow,
int black)
Deprecated.
|
byte |
getC()
Gets the cyan component value of this
Color structure. |
static CmykColor |
getEmpty()
Gets the empty.
|
byte |
getK()
Gets the black component value of this
Color structure. |
byte |
getM()
Gets the magenta component value of this
Color structure. |
byte |
getY()
Gets the yellow component value of this
Color structure. |
int |
hashCode()
The get hash code.
|
boolean |
isEmpty()
Gets a value indicating whether this
Color structure is uninitialized. |
static int[] |
toArgb32(CmykColor[] cmykPixels)
Deprecated.
|
static CmykColor |
toCmyk(int argbPixel)
Deprecated.
|
static CmykColor[] |
toCmyk(int[] argbPixels)
Deprecated.
|
static Color |
toColor(CmykColor cmykPixel)
Deprecated.
|
static Color[] |
toColor(CmykColor[] cmykPixels)
Deprecated.
|
static Color |
toColorIcc(CmykColor cmykPixel)
Deprecated.
|
static Color[] |
toColorIcc(CmykColor[] cmykPixels)
Deprecated.
|
static Color[] |
toColorIcc(CmykColor[] cmykPixels,
InputStream cmykIccStream,
InputStream rgbIccStream)
Deprecated.
|
static Color |
toColorIcc(CmykColor cmykPixel,
InputStream cmykIccStream,
InputStream rgbIccStream)
Deprecated.
|
long |
toValue()
The to value.
|
public static CmykColor getEmpty()
Gets the empty.
public final byte getC()
public final byte getM()
public final byte getY()
public final byte getK()
public final boolean isEmpty()
Gets a value indicating whether this Color
structure is uninitialized.
@Deprecated public static CmykColor fromParams(int cyan, int magenta, int yellow, int black)
Creates a CmykColor
structure from a 32-bit cyan, magenta, yellow and black values.
This method is deprecated. Please use more effective fromComponents
.
cyan
- The cyan component. Valid values are 0 through 255.magenta
- The magenta component. Valid values are 0 through 255.yellow
- The yellow component. Valid values are 0 through 255.black
- The black component. Valid values are 0 through 255.CmykColor
.public int hashCode()
The get hash code.
public boolean equals(Object obj)
Determines whether the specified Object
, is equal to this instance.
@Deprecated public static CmykColor[] toCmyk(int[] argbPixels)
The conversion from 32-bit ARGB color to CMYKColor.
This method is deprecated. Please use more effective CmykColorHelper.toCmyk(int[])
.
argbPixels
- The pixels of 32-bit ARGB format.Aspose:PSD:CmykColor[]
.@Deprecated public static Color[] toColor(CmykColor[] cmykPixels)
The conversion from CMYKColor to Color using icc conversion with default profiles.
This method is deprecated. Please use more effective CmykColorHelper.toArgb(int[])
.
cmykPixels
- The pixels of CMYKColor type in CMYK format.@Deprecated public static int[] toArgb32(CmykColor[] cmykPixels)
The conversion from CMYKColor to 32-bit ARGB Color using icc conversion with default profiles.
This method is deprecated. Please use more effective CmykColorHelper.toArgb32(int[])
.
cmykPixels
- The pixels of CMYKColor type in CMYK format.@Deprecated public static CmykColor toCmyk(int argbPixel)
The conversion from 32-bit ARGB to CMYKColor.
This method is deprecated. Please use more effective CmykColorHelper.toCmyk(int)
.
argbPixel
- The pixel of 32-bit ARGB format.Aspose:PSD:CmykColor
.@Deprecated public static Color toColor(CmykColor cmykPixel)
The conversion from CMYKColor to Color.
This method is deprecated. Please use more effective CmykColorHelper.toArgb(int)
.
cmykPixel
- The pixels of CMYKColor type in CMYK format.Color
.@Deprecated public static Color[] toColorIcc(CmykColor[] cmykPixels)
The conversion from CMYKColor to Color using icc conversion with default profiles.
This method is deprecated. Please use more effective CmykColorHelper.toArgbIcc(int[])
.
cmykPixels
- The pixels of CMYKColor type in CMYK format.Color
.@Deprecated public static Color toColorIcc(CmykColor cmykPixel)
The conversion from CMYKColor to Color using icc conversion with default profiles.
This method is deprecated. Please use more effective CmykColorHelper.toArgbIcc(int)
.
cmykPixel
- The pixel of CMYKColor type in CMYK format.Color
.@Deprecated public static Color[] toColorIcc(CmykColor[] cmykPixels, InputStream cmykIccStream, InputStream rgbIccStream)
The conversion from CMYKColor to Color using icc conversion.
This method is deprecated. Please use more effective CmykColorHelper.toArgbIcc(int, InputStream, InputStream)
.
cmykPixels
- The pixels of CMYKColor type in CMYK format.cmykIccStream
- The stream containing icc cmyk profile.rgbIccStream
- The stream containing icc rgb profile.Color
.@Deprecated public static Color toColorIcc(CmykColor cmykPixel, InputStream cmykIccStream, InputStream rgbIccStream)
The conversion from CMYKColor to Color using icc conversion.
This method is deprecated. Please use more effective CmykColorHelper.toArgbIcc(int, InputStream, InputStream)
.
cmykPixel
- The pixel of CMYKColor type in CMYK format.cmykIccStream
- The stream containing icc cmyk profile.rgbIccStream
- The stream containing icc rgb profile.Color
.public final long toValue()
The to value.
long
.public void CloneTo(CmykColor that)
CloneTo
in class com.aspose.ms.System.ValueType<CmykColor>
public CmykColor Clone()
Clone
in class com.aspose.ms.System.ValueType<CmykColor>
Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.