Package com.openhtmltopdf.java2d.api
Class BufferedImagePageProcessor
java.lang.Object
com.openhtmltopdf.java2d.api.BufferedImagePageProcessor
- All Implemented Interfaces:
FSPageProcessor
PageProcessor to render everything to buffered images
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePage
(int zeroBasedPageNumber, int width, int height) void
finishPage
(FSPage pg)
-
Field Details
-
_scale
private final double _scale -
_imageType
private final int _imageType -
_pages
-
-
Constructor Details
-
BufferedImagePageProcessor
public BufferedImagePageProcessor(int imageType, double scale) - Parameters:
imageType
- Type of the BufferedImage, e.g. BufferedImage#TYPE_INT_ARGBscale
- scale factor. You can control what resolution of the images you want
-
-
Method Details
-
createPage
- Specified by:
createPage
in interfaceFSPageProcessor
-
finishPage
- Specified by:
finishPage
in interfaceFSPageProcessor
-
getPageImages
-