public class ImageHelper extends Object
Constructor and Description |
---|
ImageHelper() |
Modifier and Type | Method and Description |
---|---|
ImageDataSource |
convertToDataSource(RenderedImage image,
String name) |
BufferedImage |
cropAndResizeImage(BufferedImage image,
int height,
int minWidth,
int maxWidth) |
BufferedImage |
getCached(String dsName,
int height,
int minWidth,
int maxWidth) |
BufferedImage |
getCachedOrResize(DataSource ds,
int height,
int minWidth,
int maxWidth) |
BufferedImage |
resizeAndCache(BufferedImage image,
String dsName,
int height,
int minWidth,
int maxWidth) |
public BufferedImage getCached(String dsName, int height, int minWidth, int maxWidth)
public BufferedImage getCachedOrResize(DataSource ds, int height, int minWidth, int maxWidth) throws IOException
IOException
public BufferedImage resizeAndCache(BufferedImage image, String dsName, int height, int minWidth, int maxWidth) throws IOException
IOException
public BufferedImage cropAndResizeImage(BufferedImage image, int height, int minWidth, int maxWidth) throws IOException
IOException
public ImageDataSource convertToDataSource(RenderedImage image, String name) throws IOException
IOException
Copyright © 2003–2015 Atlassian. All rights reserved.