CmykColor
Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct
public class CmykColor extends Struct<CmykColor>
The CMYK color of pixel.
Constructors
Constructor | Description |
---|---|
CmykColor() |
Methods
Method | Description |
---|---|
getEmpty() | Gets the empty. |
fromParams(int cyan, int magenta, int yellow, int black) | Creates a CmykColor structure from a 32-bit cyan, magenta, yellow and black values. |
toCmyk(int[] argbPixels) | The conversion from 32-bit ARGB color to CMYKColor. |
toColor(CmykColor[] cmykPixels) | The conversion from CMYKColor to Color using icc conversion with default profiles. |
toArgb32(CmykColor[] cmykPixels) | The conversion from CMYKColor to 32-bit ARGB Color using icc conversion with default profiles. |
toCmyk(int argbPixel) | The conversion from 32-bit ARGB to CMYKColor. |
toColor(CmykColor cmykPixel) | The conversion from CMYKColor to Color. |
toColorIcc(CmykColor[] cmykPixels) | The conversion from CMYKColor to Color using icc conversion with default profiles. |
toColorIcc(CmykColor cmykPixel) | The conversion from CMYKColor to Color using icc conversion with default profiles. |
toColorIcc(CmykColor[] cmykPixels, InputStream cmykIccStream, InputStream rgbIccStream) | The conversion from CMYKColor to Color using icc conversion. |
toColorIcc(CmykColor cmykPixel, InputStream cmykIccStream, InputStream rgbIccStream) | The conversion from CMYKColor to Color using icc conversion. |
isEquals(CmykColor obj1, CmykColor obj2) | |
getC() | Gets the cyan component value of this com.com.aspose.imaging.Color structure. |
getM() | Gets the magenta component value of this com.com.aspose.imaging.Color structure. |
getY() | Gets the yellow component value of this com.com.aspose.imaging.Color structure. |
getK() | Gets the black component value of this com.com.aspose.imaging.Color structure. |
isEmpty() | Gets a value indicating whether this com.com.aspose.imaging.Color structure is uninitialized. |
hashCode() | The get hash code. |
toValue() | The to value. |
CloneTo(CmykColor that) | |
Clone() | |
equals(Object obj) |
CmykColor()
public CmykColor()
getEmpty()
public static CmykColor getEmpty()
Gets the empty.
Returns: CmykColor
fromParams(int cyan, int magenta, int yellow, int black)
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).
Parameters:
Parameter | Type | Description |
---|---|---|
cyan | int | The cyan component. Valid values are 0 through 255. |
magenta | int | The magenta component. Valid values are 0 through 255. |
yellow | int | The yellow component. Valid values are 0 through 255. |
black | int | The black component. Valid values are 0 through 255. |
Returns:
CmykColor - The CmykColor
.
toCmyk(int[] argbPixels)
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[])
.
Parameters:
Parameter | Type | Description |
---|---|---|
argbPixels | int[] | The pixels of 32-bit ARGB format. |
Returns: com.aspose.imaging.CmykColor[] - The CmykColor[].
toColor(CmykColor[] cmykPixels)
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[])
.
Parameters:
Parameter | Type | Description |
---|---|---|
cmykPixels | CmykColor[] | The pixels of CMYKColor type in CMYK format. |
Returns: com.aspose.imaging.Color[] - The array of the ARGB colors.
toArgb32(CmykColor[] cmykPixels)
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[])
.
Parameters:
Parameter | Type | Description |
---|---|---|
cmykPixels | CmykColor[] | The pixels of CMYKColor type in CMYK format. |
Returns: int[] - The array of the 32-bit ARGB color.
toCmyk(int argbPixel)
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)
.
Parameters:
Parameter | Type | Description |
---|---|---|
argbPixel | int | The pixel of 32-bit ARGB format. |
Returns: CmykColor - The CmykColor.
toColor(CmykColor cmykPixel)
public static Color toColor(CmykColor cmykPixel)
The conversion from CMYKColor to Color. This method is deprecated. Please use more effective CmykColorHelper.toArgb(int)
.
Parameters:
Parameter | Type | Description |
---|---|---|
cmykPixel | CmykColor | The pixels of CMYKColor type in CMYK format. |
Returns:
Color - The com.aspose.imaging.Color[]
.
toColorIcc(CmykColor[] cmykPixels)
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[]).
Parameters:
Parameter | Type | Description |
---|---|---|
cmykPixels | CmykColor[] | The pixels of CMYKColor type in CMYK format. |
Returns:
com.aspose.imaging.Color[] - The com.com.aspose.imaging.Color[]
.
toColorIcc(CmykColor cmykPixel)
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)
.
Parameters:
Parameter | Type | Description |
---|---|---|
cmykPixel | CmykColor | The pixel of CMYKColor type in CMYK format. |
Returns:
Color - The Color
.
toColorIcc(CmykColor[] cmykPixels, InputStream cmykIccStream, InputStream rgbIccStream)
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)
.
Parameters:
Parameter | Type | Description |
---|---|---|
cmykPixels | CmykColor[] | The pixels of CMYKColor type in CMYK format. |
cmykIccStream | java.io.InputStream | The stream containing icc cmyk profile. |
rgbIccStream | java.io.InputStream | The stream containing icc rgb profile. |
Returns:
com.aspose.imaging.Color[] - The com.aspose.imaging.Color[]
.
toColorIcc(CmykColor cmykPixel, InputStream cmykIccStream, InputStream rgbIccStream)
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)
.
Parameters:
Parameter | Type | Description |
---|---|---|
cmykPixel | CmykColor | The pixel of CMYKColor type in CMYK format. |
cmykIccStream | java.io.InputStream | The stream containing icc cmyk profile. |
rgbIccStream | java.io.InputStream | The stream containing icc rgb profile. |
Returns:
Color - The Color
.
isEquals(CmykColor obj1, CmykColor obj2)
public static boolean isEquals(CmykColor obj1, CmykColor obj2)
Parameters:
Parameter | Type | Description |
---|---|---|
obj1 | CmykColor | |
obj2 | CmykColor |
Returns: boolean
getC()
public byte getC()
Gets the cyan component value of this com.com.aspose.imaging.Color
structure.
Returns:
byte - The cyan component value of this com.com.aspose.imaging.Color
.
getM()
public byte getM()
Gets the magenta component value of this com.com.aspose.imaging.Color
structure.
Returns:
byte - The magenta component value of this com.com.aspose.imaging.Color
.
getY()
public byte getY()
Gets the yellow component value of this com.com.aspose.imaging.Color
structure.
Returns:
byte - The yellow component value of this com.com.aspose.imaging.Color
.
getK()
public byte getK()
Gets the black component value of this com.com.aspose.imaging.Color
structure.
Value: The black component value of this com.com.aspose.imaging.Color
.
Returns: byte
isEmpty()
public boolean isEmpty()
Gets a value indicating whether this com.com.aspose.imaging.Color
structure is uninitialized.
Returns: boolean - This property returns true if this color is uninitialized; otherwise, false.
hashCode()
public int hashCode()
The get hash code.
Returns:
int - The int
.
toValue()
public long toValue()
The to value.
Returns: long - The long CMYK value.
CloneTo(CmykColor that)
public void CloneTo(CmykColor that)
Parameters:
Parameter | Type | Description |
---|---|---|
that | CmykColor |
Clone()
public CmykColor Clone()
Returns: CmykColor
equals(Object obj)
public boolean equals(Object obj)
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object |
Returns: boolean