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 |
---|---|
CmykColor |
Clone() |
void |
CloneTo(CmykColor that) |
boolean |
equals(Object obj) |
static CmykColor |
fromParams(int cyan,
int magenta,
int yellow,
int black)
Deprecated.
use instead CmykColorHelper#fromComponents(int, int, int, int)
|
byte |
getC()
Gets the cyan component value of this
com.aspose.imaging.Color structure. |
static CmykColor |
getEmpty()
Gets the empty.
|
byte |
getK()
Gets the black component value of this
com.aspose.imaging.Color structure. |
byte |
getM()
Gets the magenta component value of this
com.aspose.imaging.Color structure. |
byte |
getY()
Gets the yellow component value of this
com.aspose.imaging.Color structure. |
int |
hashCode()
The get hash code.
|
boolean |
isEmpty()
Gets a value indicating whether this
com.aspose.imaging.Color structure is uninitialized. |
static boolean |
isEquals(CmykColor obj1,
CmykColor obj2) |
static int[] |
toArgb32(CmykColor[] cmykPixels)
Deprecated.
use instead CmykColorHelper#toArgb32(int[])
|
static CmykColor |
toCmyk(int argbPixel)
Deprecated.
use instead CmykColorHelper#toCmyk(int)
|
static CmykColor[] |
toCmyk(int[] argbPixels)
Deprecated.
use instead CmykColorHelper#toCmyk(int[])
|
static Color |
toColor(CmykColor cmykPixel)
Deprecated.
use instead CmykColorHelper#toArgb(int)
|
static Color[] |
toColor(CmykColor[] cmykPixels)
Deprecated.
use instead CmykColorHelper#toArgb(int[])
|
static Color |
toColorIcc(CmykColor cmykPixel)
Deprecated.
use instead CmykColorHelper#toArgbIcc(int)}
|
static Color[] |
toColorIcc(CmykColor[] cmykPixels)
Deprecated.
use instead CmykColorHelper#toArgbIcc(int[])
|
static Color[] |
toColorIcc(CmykColor[] cmykPixels,
InputStream cmykIccStream,
InputStream rgbIccStream)
Deprecated.
use instead CmykColorHelper#toArgbIcc(int[], InputStream, InputStream)
|
static Color |
toColorIcc(CmykColor cmykPixel,
InputStream cmykIccStream,
InputStream rgbIccStream)
Deprecated.
use instead CmykColorHelper#toArgbIcc(int, InputStream, InputStream)
|
long |
toValue()
The to value.
|
public static CmykColor getEmpty()
Gets the empty.
public byte getC()
Gets the cyan component value of this com.aspose.imaging.Color
structure.
com.aspose.imaging.Color
.public byte getM()
Gets the magenta component value of this com.aspose.imaging.Color
structure.
com.aspose.imaging.Color
.public byte getY()
Gets the yellow component value of this com.aspose.imaging.Color
structure.
com.aspose.imaging.Color
.public byte getK()
Gets the black component value of this com.aspose.imaging.Color
structure.
com.aspose.imaging.Color
.public boolean isEmpty()
Gets a value indicating whether this com.aspose.imaging.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 CmykColorHelper#fromComponents(int, int, int, int).
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.
@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:Imaging: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:Imaging: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.Aspose.Imaging.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.com.aspose.imaging.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.Aspose.Imaging.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, Stream, Stream)
.
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 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>