class BufferedImageWorker extends ImageWorker
| Modifier and Type | Class and Description |
|---|---|
(package private) static class | BufferedImageWorker.BuilderBuilder class for creating BufferedImageWorker instances with configurable parameters. |
| Constructor and Description |
|---|
BufferedImageWorker(int width,
int height)Not for use, only for tests |
| 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)Reset the allocator state |
(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, resetState, saveImage, setAntiAliasing, setG2d, setTextAntiAliasing, transformBufferedImageWorker(int width,
int height)width - the width in pixelsheight - the height in pixelspublic 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 ImageWorkerg2d - the graphics contextvoid resize(int width,
int height)resize in class ImageWorkerwidth - The new width in pixels.height - The new height in pixels.