Example usage for org.apache.pdfbox.pdmodel.graphics.blend BlendMode MULTIPLY

List of usage examples for org.apache.pdfbox.pdmodel.graphics.blend BlendMode MULTIPLY

Introduction

In this page you can find the example usage for org.apache.pdfbox.pdmodel.graphics.blend BlendMode MULTIPLY.

Prototype

SeparableBlendMode MULTIPLY

To view the source code for org.apache.pdfbox.pdmodel.graphics.blend BlendMode MULTIPLY.

Click Source Link

Usage

From source file:com.trollworks.gcs.pdfview.PdfRenderer.java

License:Open Source License

private PdfRenderer(Graphics2D gc, String textToHighlight) throws IOException {
    super();/*  ww w .j a va2s  .  c o  m*/
    mGC = gc;
    mGC.setColor(Color.YELLOW);
    mGC.setComposite(BlendComposite.getInstance(BlendMode.MULTIPLY, 0.3f));
    mTextToHighlight = textToHighlight.toLowerCase();
}