Example usage for com.itextpdf.text.pdf PdfContentByte resetRGBColorFill

List of usage examples for com.itextpdf.text.pdf PdfContentByte resetRGBColorFill

Introduction

In this page you can find the example usage for com.itextpdf.text.pdf PdfContentByte resetRGBColorFill.

Prototype


public void resetRGBColorFill() 

Source Link

Document

Changes the current color for filling paths to black.

Usage

From source file:edu.cornell.mannlib.vitro.webapp.visualization.visutils.PDFDocument.java

License:Open Source License

private void createTransparencyShapes(Document document, PdfWriter writer) throws Exception {
    PdfContentByte cb = writer.getDirectContent();

    pictureBackdrop(document.leftMargin(), 350, cb);
    cb.saveState();/* w ww .jav  a  2s .  co m*/
    PdfGState gs1 = new PdfGState();
    gs1.setFillOpacity(0.5f);
    cb.setGState(gs1);
    pictureCircles(document.leftMargin(), 350, cb);
    cb.restoreState();

    cb.resetRGBColorFill();
}