JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support

org.jpedal.examples.handlers
Class ExampleColorHandler

java.lang.Object
  extended by org.jpedal.examples.handlers.ExampleColorHandler
All Implemented Interfaces:
ColorHandler

public class ExampleColorHandler
extends java.lang.Object
implements ColorHandler


Constructor Summary
ExampleColorHandler()
           
 
Method Summary
 java.awt.image.BufferedImage processImage(java.awt.image.BufferedImage image, int pageNumber, boolean isPrinting)
          allow user to alter colour (ie to convert to bw)
 void setPaint(java.awt.Graphics2D g2, org.jpedal.color.PdfPaint col, int pageNumber, boolean isPrinting)
          allow user to alter colour (ie to convert to bw)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleColorHandler

public ExampleColorHandler()
Method Detail

setPaint

public void setPaint(java.awt.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 ColorHandler

processImage

public java.awt.image.BufferedImage processImage(java.awt.image.BufferedImage image,
                                                 int pageNumber,
                                                 boolean isPrinting)
allow user to alter colour (ie to convert to bw)

Specified by:
processImage in interface ColorHandler

JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support

JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support