Class ExampleColorHandler

  • All Implemented Interfaces:
    org.jpedal.external.ColorHandler

    public class ExampleColorHandler
    extends Object
    implements org.jpedal.external.ColorHandler
    • Constructor Detail

      • ExampleColorHandler

        public ExampleColorHandler()
    • Method Detail

      • setPaint

        public void setPaint​(Graphics2D g2,
                             org.jpedal.color.PdfPaint col,
                             int pageNumber,
                             boolean isPrinting)
        allow user to alter colour (ie to convert to bw)
        Specified by:
        setPaint in interface org.jpedal.external.ColorHandler
      • processImage

        public BufferedImage processImage​(BufferedImage image,
                                          int pageNumber,
                                          boolean isPrinting)
        allow user to alter colour (ie to convert to bw)
        Specified by:
        processImage in interface org.jpedal.external.ColorHandler