Example usage for org.apache.pdfbox.pdmodel.graphics.blend BlendComposite getInstance

List of usage examples for org.apache.pdfbox.pdmodel.graphics.blend BlendComposite getInstance

Introduction

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

Prototype

public static Composite getInstance(BlendMode blendMode, float constantAlpha) 

Source Link

Document

Creates a blend composite

Usage

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

License:Open Source License

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