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()
Returns clone of itself
|
CMYKColor |
Clone()
Returns clone of itself
|
void |
CloneTo(CMYKColor that)
Clone itself into
that . |
boolean |
equals(Object obj)
Returns
true if it is equal to obj . |
static CMYKColor |
fromParams(int cyan,
int magenta,
int yellow,
int black)
Creates a
Aspose.Imaging.CMYKColor structure from a 32-bit cyan, magenta, yellow and black values. |
byte |
getC()
Gets the cyan component value of this
Aspose.Imaging.Color structure. |
static CMYKColor |
getEmpty()
Gets the empty.
|
byte |
getK()
Gets the black component value of this
Aspose.Imaging.Color structure. |
byte |
getM()
Gets the magenta component value of this
Aspose.Imaging.Color structure. |
byte |
getY()
Gets the yellow component value of this
Aspose.Imaging.Color structure. |
int |
hashCode()
The get hash code.
|
boolean |
isEmpty()
Gets a value indicating whether this
Aspose.Imaging.Color structure is uninitialized. |
static int[] |
toArgb32(CMYKColor[] cmykPixels)
The conversion from CMYKColor to 32-bit ARGB Color using icc conversion with default profiles.
|
static CMYKColor |
toCMYK(int argbPixel)
The conversion from 32-bit ARGB to CMYKColor.
|
static CMYKColor[] |
toCMYK(int[] argbPixels)
The conversion from 32-bit ARGB color to CMYKColor.
|
static Color |
toColor(CMYKColor cmykPixel)
The conversion from CMYKColor to Color.
|
static Color[] |
toColor(CMYKColor[] cmykPixels)
The conversion from CMYKColor to Color using icc conversion with default profiles.
|
static Color |
toColorIcc(CMYKColor cmykPixel)
The conversion from CMYKColor to Color using icc conversion with default profiles.
|
static Color[] |
toColorIcc(CMYKColor[] cmykPixels)
The conversion from CMYKColor to Color using icc conversion with default profiles.
|
static Color[] |
toColorIcc(CMYKColor[] cmykPixels,
InputStream cmykIccStream,
InputStream rgbIccStream)
The conversion from CMYKColor to Color using icc conversion.
|
static Color |
toColorIcc(CMYKColor cmykPixel,
InputStream cmykIccStream,
InputStream rgbIccStream)
The conversion from CMYKColor to Color using icc conversion.
|
long |
toValue()
The to value.
|
public static CMYKColor getEmpty()
Gets the empty.
public byte getC()
Gets the cyan component value of this Aspose.Imaging.Color
structure.
Aspose.Imaging.Color
.public byte getM()
Gets the magenta component value of this Aspose.Imaging.Color
structure.
Aspose.Imaging.Color
.public byte getY()
Gets the yellow component value of this Aspose.Imaging.Color
structure.
Aspose.Imaging.Color
.public byte getK()
Gets the black component value of this Aspose.Imaging.Color
structure.
Aspose.Imaging.Color
.public boolean isEmpty()
Gets a value indicating whether this Aspose.Imaging.Color
structure is uninitialized.
public static CMYKColor fromParams(int cyan, int magenta, int yellow, int black)
Creates a Aspose.Imaging.CMYKColor
structure from a 32-bit cyan, magenta, yellow and black values.
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 static CMYKColor[] toCMYK(int[] argbPixels)
The conversion from 32-bit ARGB color to CMYKColor.
argbPixels
- The pixels of 32-bit ARGB format.T:Aspose:Imaging:CMYKColor[]
.public static Color[] toColor(CMYKColor[] cmykPixels)
The conversion from CMYKColor to Color using icc conversion with default profiles.
cmykPixels
- The pixels of CMYKColor type in CMYK format.{@code <cref>Color[]</cref>}
.public static int[] toArgb32(CMYKColor[] cmykPixels)
The conversion from CMYKColor to 32-bit ARGB Color using icc conversion with default profiles.
cmykPixels
- The pixels of CMYKColor type in CMYK format.public static CMYKColor toCMYK(int argbPixel)
The conversion from 32-bit ARGB to CMYKColor.
argbPixel
- The pixel of 32-bit ARGB format.T:Aspose:Imaging:CMYKColor
.public static Color toColor(CMYKColor cmykPixel)
The conversion from CMYKColor to Color.
cmykPixel
- The pixels of CMYKColor type in CMYK format.T:Aspose.Imaging.Color[]
.public static Color[] toColorIcc(CMYKColor[] cmykPixels)
The conversion from CMYKColor to Color using icc conversion with default profiles.
cmykPixels
- The pixels of CMYKColor type in CMYK format.T:Aspose.Imaging.Color[]
.public static Color toColorIcc(CMYKColor cmykPixel)
The conversion from CMYKColor to Color using icc conversion with default profiles.
cmykPixel
- The pixel of CMYKColor type in CMYK format.Color
.public static Color[] toColorIcc(CMYKColor[] cmykPixels, InputStream cmykIccStream, InputStream rgbIccStream)
The conversion from CMYKColor to Color using icc conversion.
cmykPixels
- The pixels of CMYKColor type in CMYK format.cmykIccStream
- The stream containing icc cmyk profile.rgbIccStream
- The stream containing icc rgb profile.T:Aspose.Imaging.Color[]
.public static Color toColorIcc(CMYKColor cmykPixel, InputStream cmykIccStream, InputStream rgbIccStream)
The conversion from CMYKColor to Color using icc conversion.
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)
Clone itself into that
.
CloneTo
in class com.aspose.ms.System.ValueType<CMYKColor>
that
- Object intended to copy into it.public CMYKColor Clone()
Returns clone of itself
Clone
in class com.aspose.ms.System.ValueType<CMYKColor>
public Object clone()
Returns clone of itself
Copyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.