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
Clone()
CloneTo(T arg0)
CloneTo(CmykColor that)
equals(Object obj)
fromParams(int cyan, int magenta, int yellow, int black)Creates a CmykColor structure from a 32-bit cyan, magenta, yellow and black values.
getC()Gets the cyan component value of this com.aspose.psd.Color structure.
getClass()
getEmpty()Gets the empty.
getK()Gets the black component value of this com.aspose.psd.Color structure.
getM()Gets the magenta component value of this com.aspose.psd.Color structure.
getY()Gets the yellow component value of this com.aspose.psd.Color structure.
hashCode()The get hash code.
isEmpty()Gets a value indicating whether this com.aspose.psd.Color structure is uninitialized.
isEquals(CmykColor obj1, CmykColor obj2)
notify()
notifyAll()
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.
toCmyk(int[] argbPixels)The conversion from 32-bit ARGB color to CMYKColor.
toColor(CmykColor cmykPixel)The conversion from CMYKColor to Color.
toColor(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 cmykPixel, InputStream cmykIccStream, InputStream rgbIccStream)The conversion from CMYKColor to Color using icc conversion.
toColorIcc(CmykColor[] cmykPixels)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_internalized(CmykColor cmykPixel, System.IO.Stream cmykIccStream, System.IO.Stream rgbIccStream)The conversion from CMYKColor to Color using icc conversion.
toColorIcc_internalized(CmykColor[] cmykPixels, System.IO.Stream cmykIccStream, System.IO.Stream rgbIccStream)The conversion from CMYKColor to Color using icc conversion.
toString()
toValue()The to value.
wait()
wait(long arg0)
wait(long arg0, int arg1)

CmykColor()

public CmykColor()

Clone()

public CmykColor Clone()

Returns: CmykColor

CloneTo(T arg0)

public abstract void CloneTo(T arg0)

Parameters:

ParameterTypeDescription
arg0T

CloneTo(CmykColor that)

public void CloneTo(CmykColor that)

Parameters:

ParameterTypeDescription
thatCmykColor

equals(Object obj)

public boolean equals(Object obj)

Parameters:

ParameterTypeDescription
objjava.lang.Object

Returns: boolean

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 .

getC()

public byte getC()

Gets the cyan component value of this com.aspose.psd.Color structure.

Returns: byte - The cyan component value of this com.aspose.psd.Color .

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getEmpty()

public static CmykColor getEmpty()

Gets the empty.

Returns: CmykColor

getK()

public byte getK()

Gets the black component value of this com.aspose.psd.Color structure.

Value: The black component value of this com.aspose.psd.Color .

Returns: byte

getM()

public byte getM()

Gets the magenta component value of this com.aspose.psd.Color structure.

Returns: byte - The magenta component value of this com.aspose.psd.Color .

getY()

public byte getY()

Gets the yellow component value of this com.aspose.psd.Color structure.

Returns: byte - The yellow component value of this com.aspose.psd.Color .

hashCode()

public int hashCode()

The get hash code.

Returns: int - The int .

isEmpty()

public boolean isEmpty()

Gets a value indicating whether this com.aspose.psd.Color structure is uninitialized.

Returns: boolean - This property returns true if this color is uninitialized; otherwise, false.

isEquals(CmykColor obj1, CmykColor obj2)

public static boolean isEquals(CmykColor obj1, CmykColor obj2)

Parameters:

ParameterTypeDescription
obj1CmykColor
obj2CmykColor

Returns: boolean

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

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 Aspose:Imaging: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.psd.CmykColor[] - The Aspose:Imaging: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 Aspose.Imaging.Color[] .

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.psd.Color[] - The array of the ARGB colors.

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 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 .

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.psd.Color[] - The com.aspose.psd.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.psd.Color[] - The Aspose.Imaging.Color[] .

toColorIcc_internalized(CmykColor cmykPixel, System.IO.Stream cmykIccStream, System.IO.Stream rgbIccStream)

public static Color toColorIcc_internalized(CmykColor cmykPixel, System.IO.Stream cmykIccStream, System.IO.Stream rgbIccStream)

The conversion from CMYKColor to Color using icc conversion.

Parameters:

ParameterTypeDescription
cmykPixelCmykColorThe pixel of CMYKColor type in CMYK format.
cmykIccStreamcom.aspose.ms.System.IO.StreamThe stream containing icc cmyk profile.
rgbIccStreamcom.aspose.ms.System.IO.StreamThe stream containing icc rgb profile.

Returns: Color - The Color .

toColorIcc_internalized(CmykColor[] cmykPixels, System.IO.Stream cmykIccStream, System.IO.Stream rgbIccStream)

public static Color[] toColorIcc_internalized(CmykColor[] cmykPixels, System.IO.Stream cmykIccStream, System.IO.Stream rgbIccStream)

The conversion from CMYKColor to Color using icc conversion.

Parameters:

ParameterTypeDescription
cmykPixelsCmykColor[]The pixels of CMYKColor type in CMYK format.
cmykIccStreamcom.aspose.ms.System.IO.StreamThe stream containing icc cmyk profile.
rgbIccStreamcom.aspose.ms.System.IO.StreamThe stream containing icc rgb profile.

Returns: com.aspose.psd.Color[] - The Aspose.Imaging.Color[] .

toString()

public String toString()

Returns: java.lang.String

toValue()

public long toValue()

The to value.

Returns: long - The long .

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int