Package org.jpedal.examples.handlers
Class ExampleColorHandler
- java.lang.Object
-
- org.jpedal.examples.handlers.ExampleColorHandler
-
- All Implemented Interfaces:
org.jpedal.external.ColorHandler
public class ExampleColorHandler extends Object implements org.jpedal.external.ColorHandler
-
-
Constructor Summary
Constructors Constructor Description ExampleColorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BufferedImage
processImage(BufferedImage image, int pageNumber, boolean isPrinting)
allow user to alter colour (ie to convert to bw)void
setPaint(Graphics2D g2, org.jpedal.color.PdfPaint col, int pageNumber, boolean isPrinting)
allow user to alter colour (ie to convert to bw)
-
-
-
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 interfaceorg.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 interfaceorg.jpedal.external.ColorHandler
-
-