Java Code Examples for org.apache.pdfbox.pdmodel.PDPageContentStream.setGraphicsStateParameters()

The following are Jave code examples for showing how to use setGraphicsStateParameters() of the org.apache.pdfbox.pdmodel.PDPageContentStream class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: pdfbox-graphics2d   File:   Source Code and License Vote up 7 votes
public PDShading applyPaint(Paint paint, PDPageContentStream contentStream, AffineTransform tf, IPaintEnv env)
		throws IOException {
	this.document = env.getDocument();
	this.resources = env.getResources();
	this.contentStream = contentStream;
	this.colorMapper = env.getColorMapper();
	this.imageEncoder = env.getImageEncoder();
	this.composite = env.getComposite();
	this.pdExtendedGraphicsState = null;
	PDShading shading = applyPaint(paint, tf);
	if (pdExtendedGraphicsState != null)
	return shading;