Packages

 

com.aspose.imaging

Interfaces

Classes

Exceptions

com.aspose.imaging

Class CmykColor



  • public class CmykColor
    extends com.aspose.ms.lang.Struct<CmykColor>

    The CMYK color of pixel.

    • Constructor Detail

      • CmykColor

        public CmykColor()
    • Method Detail

      • getEmpty

        public static CmykColor getEmpty()

        Gets the empty.

      • getC

        public byte getC()

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

        Returns:
        The cyan component value of this com.aspose.imaging.Color.
      • getM

        public byte getM()

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

        Returns:
        The magenta component value of this com.aspose.imaging.Color.
      • getY

        public byte getY()

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

        Returns:
        The yellow component value of this com.aspose.imaging.Color.
      • getK

        public byte getK()

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

        Value: The black component value of this com.aspose.imaging.Color.
      • isEmpty

        public boolean isEmpty()

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

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

        @Deprecated
        public static CmykColor fromParams(int cyan,
                                                        int magenta,
                                                        int yellow,
                                                        int black)
        Deprecated. use instead CmykColorHelper#fromComponents(int, int, int, int)

        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:
        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.
        Returns:
        The CmykColor.
      • hashCode

        public int hashCode()

        The get hash code.

        Overrides:
        hashCode in class Object
        Returns:
        The int.
      • toCmyk

        @Deprecated
        public static CmykColor[] toCmyk(int[] argbPixels)
        Deprecated. use instead CmykColorHelper#toCmyk(int[])

        The conversion from 32-bit ARGB color to CMYKColor. This method is deprecated. Please use more effective CmykColorHelper.toCmyk(int[]).

        Parameters:
        argbPixels - The pixels of 32-bit ARGB format.
        Returns:
        The Aspose:Imaging:CmykColor[].
      • toColor

        @Deprecated
        public static Color[] toColor(CmykColor[] cmykPixels)
        Deprecated. use instead CmykColorHelper#toArgb(int[])

        The conversion from CMYKColor to Color using icc conversion with default profiles. This method is deprecated. Please use more effective CmykColorHelper.toArgb(int[]).

        Parameters:
        cmykPixels - The pixels of CMYKColor type in CMYK format.
        Returns:
        The array of the ARGB colors.
      • toArgb32

        @Deprecated
        public static int[] toArgb32(CmykColor[] cmykPixels)
        Deprecated. use instead CmykColorHelper#toArgb32(int[])

        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:
        cmykPixels - The pixels of CMYKColor type in CMYK format.
        Returns:
        The array of the 32-bit ARGB color.
      • toCmyk

        @Deprecated
        public static CmykColor toCmyk(int argbPixel)
        Deprecated. use instead CmykColorHelper#toCmyk(int)

        The conversion from 32-bit ARGB to CMYKColor. This method is deprecated. Please use more effective CmykColorHelper.toCmyk(int).

        Parameters:
        argbPixel - The pixel of 32-bit ARGB format.
        Returns:
        The Aspose:Imaging:CmykColor.
      • toColor

        @Deprecated
        public static Color toColor(CmykColor cmykPixel)
        Deprecated. use instead CmykColorHelper#toArgb(int)

        The conversion from CMYKColor to Color. This method is deprecated. Please use more effective CmykColorHelper.toArgb(int).

        Parameters:
        cmykPixel - The pixels of CMYKColor type in CMYK format.
        Returns:
        The Aspose.Imaging.Color[].
      • toColorIcc

        @Deprecated
        public static Color[] toColorIcc(CmykColor[] cmykPixels)
        Deprecated. use instead CmykColorHelper#toArgbIcc(int[])

        The conversion from CMYKColor to Color using icc conversion with default profiles. This method is deprecated. Please use more effective CmykColorHelper#toArgbIcc(int[]).

        Parameters:
        cmykPixels - The pixels of CMYKColor type in CMYK format.
        Returns:
        The com.aspose.imaging.Color[].
      • toColorIcc

        @Deprecated
        public static Color toColorIcc(CmykColor cmykPixel)
        Deprecated. use instead CmykColorHelper#toArgbIcc(int)}

        The conversion from CMYKColor to Color using icc conversion with default profiles. This method is deprecated. Please use more effective CmykColorHelper.toArgbIcc(int).

        Parameters:
        cmykPixel - The pixel of CMYKColor type in CMYK format.
        Returns:
        The Color.
      • toColorIcc

        @Deprecated
        public static Color[] toColorIcc(CmykColor[] cmykPixels,
                                                      InputStream cmykIccStream,
                                                      InputStream rgbIccStream)
        Deprecated. use instead CmykColorHelper#toArgbIcc(int[], InputStream, InputStream)

        The conversion from CMYKColor to Color using icc conversion. This method is deprecated. Please use more effective CmykColorHelper.toArgbIcc(int[], InputStream, InputStream).

        Parameters:
        cmykPixels - The pixels of CMYKColor type in CMYK format.
        cmykIccStream - The stream containing icc cmyk profile.
        rgbIccStream - The stream containing icc rgb profile.
        Returns:
        The Aspose.Imaging.Color[].
      • toColorIcc

        @Deprecated
        public static Color toColorIcc(CmykColor cmykPixel,
                                                    InputStream cmykIccStream,
                                                    InputStream rgbIccStream)
        Deprecated. use instead CmykColorHelper#toArgbIcc(int, InputStream, InputStream)

        The conversion from CMYKColor to Color using icc conversion. This method is deprecated. Please use more effective CmykColorHelper.toArgbIcc(int, Stream, Stream).

        Parameters:
        cmykPixel - The pixel of CMYKColor type in CMYK format.
        cmykIccStream - The stream containing icc cmyk profile.
        rgbIccStream - The stream containing icc rgb profile.
        Returns:
        The Color.
      • toValue

        public long toValue()

        The to value.

        Returns:
        The long.
      • CloneTo

        public void CloneTo(CmykColor that)
        Specified by:
        CloneTo in class com.aspose.ms.System.ValueType<CmykColor>
      • Clone

        public CmykColor Clone()
        Specified by:
        Clone in class com.aspose.ms.System.ValueType<CmykColor>