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

ConstructorDescription
CmykColor()

Methods

MethodDescription
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:

ParameterTypeDescription
cyanintThe cyan component. Valid values are 0 through 255.
magentaintThe magenta component. Valid values are 0 through 255.
yellowintThe yellow component. Valid values are 0 through 255.
blackintThe 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:

ParameterTypeDescription
argbPixelsint[]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:

ParameterTypeDescription
cmykPixelsCmykColor[]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:

ParameterTypeDescription
cmykPixelsCmykColor[]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:

ParameterTypeDescription
argbPixelintThe 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:

ParameterTypeDescription
cmykPixelCmykColorThe 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:

ParameterTypeDescription
cmykPixelsCmykColor[]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:

ParameterTypeDescription
cmykPixelCmykColorThe 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:

ParameterTypeDescription
cmykPixelsCmykColor[]The pixels of CMYKColor type in CMYK format.
cmykIccStreamjava.io.InputStreamThe stream containing icc cmyk profile.
rgbIccStreamjava.io.InputStreamThe 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:

ParameterTypeDescription
cmykPixelCmykColorThe pixel of CMYKColor type in CMYK format.
cmykIccStreamjava.io.InputStreamThe stream containing icc cmyk profile.
rgbIccStreamjava.io.InputStreamThe stream containing icc rgb profile.

Returns: Color - The Color.

isEquals(CmykColor obj1, CmykColor obj2)

public static boolean isEquals(CmykColor obj1, CmykColor obj2)

Parameters:

ParameterTypeDescription
obj1CmykColor
obj2CmykColor

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:

ParameterTypeDescription
thatCmykColor

Clone()

public CmykColor Clone()

Returns: CmykColor

equals(Object obj)

public boolean equals(Object obj)

Parameters:

ParameterTypeDescription
objjava.lang.Object

Returns: boolean