| Constructor and Description |
|---|
ImageDisplay() |
| Modifier and Type | Method and Description |
|---|---|
Color |
getBgColor() |
String |
getFileType() |
int |
getImageType() |
int |
getMargin() |
Dimension |
getMaxDimension() |
BufferedImage |
getScaledInstance(BufferedImage img,
int targetWidth,
int targetHeight,
boolean higherQuality) |
boolean |
isUseAffineTransform() |
protected BufferedImage |
postProcessImage(BufferedImage finalImage)
Apply post processing to the rendered and scaled image.
|
BufferedImage |
render(Layout<?> layout) |
byte[] |
renderToBytes(Layout<?> layout) |
void |
renderToFile(Layout<?> layout,
File file) |
void |
renderToOutputStream(Layout<?> layout,
OutputStream outputStream) |
ImageDisplay |
setBgColor(Color bgColor) |
ImageDisplay |
setFileType(String fileType) |
ImageDisplay |
setImageType(int imageType) |
ImageDisplay |
setMargin(int margin) |
ImageDisplay |
setMaxDimension(Dimension maxDimension) |
ImageDisplay |
setUseAffineTransform(boolean useAffineTransform)
Indicate if the scaling should be done by an affine transformation instead of multi sample
scaling.
|
public void renderToFile(Layout<?> layout, File file) throws IOException, LayoutException
renderToFile in interface DisplayIOExceptionLayoutExceptionpublic void renderToOutputStream(Layout<?> layout, OutputStream outputStream) throws IOException, LayoutException
renderToOutputStream in interface DisplayIOExceptionLayoutExceptionpublic byte[] renderToBytes(Layout<?> layout) throws IOException, LayoutException
renderToBytes in interface DisplayIOExceptionLayoutExceptionpublic BufferedImage render(Layout<?> layout) throws IOException, LayoutException
IOExceptionLayoutExceptionprotected BufferedImage postProcessImage(BufferedImage finalImage)
public BufferedImage getScaledInstance(BufferedImage img, int targetWidth, int targetHeight, boolean higherQuality)
public final Color getBgColor()
public final ImageDisplay setBgColor(Color bgColor)
public final int getMargin()
public final ImageDisplay setMargin(int margin)
public final Dimension getMaxDimension()
public final ImageDisplay setMaxDimension(Dimension maxDimension)
public final ImageDisplay setUseAffineTransform(boolean useAffineTransform)
public final boolean isUseAffineTransform()
public int getImageType()
public ImageDisplay setImageType(int imageType)
public String getFileType()
public ImageDisplay setFileType(String fileType)
Copyright © 2013 dontdrinkandroot. All Rights Reserved.