Class PdfBoxGraphics2DCMYKColor

  • All Implemented Interfaces:
    Paint, Transparency, Serializable

    public class PdfBoxGraphics2DCMYKColor
    extends Color
    This color class represents a CMYK Color. You can use this class if you want to paint with DeviceCMYK Colors
    See Also:
    Serialized Form
    • Constructor Detail

      • PdfBoxGraphics2DCMYKColor

        public PdfBoxGraphics2DCMYKColor​(int c,
                                         int m,
                                         int y,
                                         int k,
                                         int alpha)
      • PdfBoxGraphics2DCMYKColor

        public PdfBoxGraphics2DCMYKColor​(int c,
                                         int m,
                                         int y,
                                         int k)
      • PdfBoxGraphics2DCMYKColor

        public PdfBoxGraphics2DCMYKColor​(float c,
                                         float m,
                                         float y,
                                         float k)
      • PdfBoxGraphics2DCMYKColor

        public PdfBoxGraphics2DCMYKColor​(float c,
                                         float m,
                                         float y,
                                         float k,
                                         int alpha)
      • PdfBoxGraphics2DCMYKColor

        public PdfBoxGraphics2DCMYKColor​(float c,
                                         float m,
                                         float y,
                                         float k,
                                         int alpha,
                                         org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
    • Method Detail

      • getC

        public float getC()
      • getM

        public float getM()
      • getY

        public float getY()
      • getK

        public float getK()
      • toPDColor

        public org.apache.pdfbox.pdmodel.graphics.color.PDColor toPDColor()
        Returns:
        the PDColor represented by this color object