class BufferedImageWorker extends ImageWorker
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
BufferedImageWorker.Builder
Builder class for creating BufferedImageWorker instances with configurable parameters.
|
| Constructor and Description |
|---|
BufferedImageWorker(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
static BufferedImageWorker.Builder |
getBuilder()
Creates a new builder for BufferedImageWorker.
|
(package private) void |
makeImage(OutputStream stream)
Creates and writes the image to the specified output stream.
|
protected void |
reset(Graphics2D g2d) |
(package private) void |
resize(int width,
int height)
Resizes the worker to the specified dimensions.
|
clip, dispose, drawLine, drawPolyline, drawString, fillPolygon, fillPolygon, fillRect, getFontAscent, getFontHeight, getImageBytes, getStringWidth, loadImage, makeImage, reset, saveImage, setAntiAliasing, setG2d, setTextAntiAliasing, transformpublic static BufferedImageWorker.Builder getBuilder()
void makeImage(OutputStream stream) throws IOException
makeImage in class ImageWorkerstream - The output stream to write the image to.IOException - If an I/O error occurs during writing.protected void reset(Graphics2D g2d)
reset in class ImageWorkervoid resize(int width,
int height)
resize in class ImageWorkerwidth - The new width in pixels.height - The new height in pixels.