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) |
static CmykColor |
fromParams(int cyan,
int magenta,
int yellow,
int black)
Creates a
com.aspose.cad.CmykColor structure from a 32-bit cyan, magenta, yellow and black values. |
byte |
getC()
Gets the cyan component value of this
com.aspose.cad.Color structure. |
static CmykColor |
getEmpty()
Gets the empty.
|
byte |
getK()
Gets the black component value of this
com.aspose.cad.Color structure. |
byte |
getM()
Gets the magenta component value of this
com.aspose.cad.Color structure. |
byte |
getY()
Gets the yellow component value of this
com.aspose.cad.Color structure. |
int |
hashCode()
The get hash code.
|
boolean |
isEmpty()
Gets a value indicating whether this
com.aspose.cad.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.
|
static Color[] |
toColorIccInternal_internalized(CmykColor[] cmykPixels,
com.aspose.ms.System.IO.Stream cmykIccStream,
com.aspose.ms.System.IO.Stream rgbIccStream)
The conversion from CMYKColor to Color using icc conversion.
|
static Color |
toColorIccInternal_internalized(CmykColor cmykPixel,
com.aspose.ms.System.IO.Stream cmykIccStream,
com.aspose.ms.System.IO.Stream rgbIccStream) |
long |
toValue()
The to value.
|
public static CmykColor getEmpty()
Gets the empty.
public byte getC()
Gets the cyan component value of this com.aspose.cad.Color
structure.
com.aspose.cad.Color
.public byte getM()
Gets the magenta component value of this com.aspose.cad.Color
structure.
com.aspose.cad.Color
.public byte getY()
Gets the yellow component value of this com.aspose.cad.Color
structure.
com.aspose.cad.Color
.public byte getK()
Gets the black component value of this com.aspose.cad.Color
structure.
com.aspose.cad.Color
.public boolean isEmpty()
Gets a value indicating whether this com.aspose.cad.Color
structure is uninitialized.
public static CmykColor fromParams(int cyan, int magenta, int yellow, int black)
Creates a com.aspose.cad.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.com.aspose.cad.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.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.com.aspose.cad.CmykColor
.public static Color toColor(CmykColor cmykPixel)
The conversion from CMYKColor to Color.
cmykPixel
- The pixels of CMYKColor type in CMYK format.com.aspose.cad.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.com.aspose.cad.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.com.aspose.cad.Color[]
.public static Color[] toColorIccInternal_internalized(CmykColor[] cmykPixels, com.aspose.ms.System.IO.Stream cmykIccStream, com.aspose.ms.System.IO.Stream 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.com.aspose.cad.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 static Color toColorIccInternal_internalized(CmykColor cmykPixel, com.aspose.ms.System.IO.Stream cmykIccStream, com.aspose.ms.System.IO.Stream rgbIccStream)
public long toValue()
The to value.
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>