Packages

 

com.aspose.cad

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 Aspose.Imaging.Color structure.

        Value: The cyan component value of this Aspose.Imaging.Color.
      • getM

        public byte getM()

        Gets the magenta component value of this Aspose.Imaging.Color structure.

        Value: The magenta component value of this Aspose.Imaging.Color.
      • getY

        public byte getY()

        Gets the yellow component value of this Aspose.Imaging.Color structure.

        Value: The yellow component value of this Aspose.Imaging.Color.
      • getK

        public byte getK()

        Gets the black component value of this Aspose.Imaging.Color structure.

        Value: The black component value of this Aspose.Imaging.Color.
      • isEmpty

        public boolean isEmpty()

        Gets a value indicating whether this Aspose.Imaging.Color structure is uninitialized.

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

        public static CmykColor fromParams(int cyan,
                           int magenta,
                           int yellow,
                           int black)

        Creates a Aspose.Imaging.CmykColor structure from a 32-bit cyan, magenta, yellow and black values.

        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

        public static CmykColor[] toCmyk(int[] argbPixels)

        The conversion from 32-bit ARGB color to CMYKColor.

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

        public static Color[] toColor(CmykColor[] cmykPixels)

        The conversion from CMYKColor to Color using icc conversion with default profiles.

        Parameters:
        cmykPixels - The pixels of CMYKColor type in CMYK format.
        Returns:
        {@code <cref>Color[]</cref>} .
      • toArgb32

        public static int[] toArgb32(CmykColor[] cmykPixels)

        The conversion from CMYKColor to 32-bit ARGB Color using icc conversion with default profiles.

        Parameters:
        cmykPixels - The pixels of CMYKColor type in CMYK format.
        Returns:
        The array of the 32-bit ARGB color.
      • toCmyk

        public static CmykColor toCmyk(int argbPixel)

        The conversion from 32-bit ARGB to CMYKColor.

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

        public static Color toColor(CmykColor cmykPixel)

        The conversion from CMYKColor to Color.

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

        public static Color[] toColorIcc(CmykColor[] cmykPixels)

        The conversion from CMYKColor to Color using icc conversion with default profiles.

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

        public static Color toColorIcc(CmykColor cmykPixel)

        The conversion from CMYKColor to Color using icc conversion with default profiles.

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

        public static Color[] toColorIcc(CmykColor[] cmykPixels,
                         InputStream cmykIccStream,
                         InputStream rgbIccStream)

        The conversion from CMYKColor to Color using icc conversion.

        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[].
      • toColorIccInternal_internalized

        public static Color[] toColorIccInternal_internalized(CmykColor[] cmykPixels,
                                              com.aspose.ms.System.IO.Stream cmykIccStream,
                                              com.aspose.ms.System.IO.Stream rgbIccStream)
      • toColorIcc

        public static Color toColorIcc(CmykColor cmykPixel,
                       InputStream cmykIccStream,
                       InputStream rgbIccStream)

        The conversion from CMYKColor to Color using icc conversion.

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

        public static Color toColorIccInternal_internalized(CmykColor cmykPixel,
                                            com.aspose.ms.System.IO.Stream cmykIccStream,
                                            com.aspose.ms.System.IO.Stream rgbIccStream)
      • 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>