Class PdfBoxGraphics2DColor

    • Constructor Detail

      • PdfBoxGraphics2DColor

        public PdfBoxGraphics2DColor​(org.apache.pdfbox.pdmodel.graphics.color.PDColor color)
        Parameters:
        color - the PDColor
      • PdfBoxGraphics2DColor

        public PdfBoxGraphics2DColor​(org.apache.pdfbox.pdmodel.graphics.color.PDColor color,
                                     int alpha)
        Parameters:
        color - the PDColor
        alpha - the alpha to use
      • PdfBoxGraphics2DColor

        public PdfBoxGraphics2DColor​(org.apache.pdfbox.pdmodel.graphics.color.PDColor color,
                                     int alpha,
                                     boolean overprint)
        Parameters:
        color - the PDColor
        alpha - the alpha to use
        overprint - determine if overprint should be used
    • Method Detail

      • getAlpha

        public int getAlpha()
        Overrides:
        getAlpha in class Color
      • isOverprint

        public boolean isOverprint()
        Specified by:
        isOverprint in interface IPdfBoxGraphics2DColor
        Returns:
        true if this color should be applied with overprint
      • toPDColor

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