com.atlassian.confluence.plugins.dailysummary.content.popular
Class ImageHelper
java.lang.Object
com.atlassian.confluence.plugins.dailysummary.content.popular.ImageHelper
public class ImageHelper
- extends Object
Method Summary |
DataSource |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageHelper
public ImageHelper()
getCached
public BufferedImage getCached(String dsName,
int height,
int minWidth,
int maxWidth)
getCachedOrResize
public BufferedImage getCachedOrResize(DataSource ds,
int height,
int minWidth,
int maxWidth)
throws IOException
- Throws:
IOException
resizeAndCache
public BufferedImage resizeAndCache(BufferedImage image,
String dsName,
int height,
int minWidth,
int maxWidth)
throws IOException
- Throws:
IOException
cropAndResizeImage
public BufferedImage cropAndResizeImage(BufferedImage image,
int height,
int minWidth,
int maxWidth)
throws IOException
- Throws:
IOException
convertToDataSource
public DataSource convertToDataSource(RenderedImage image,
String name)
throws IOException
- Throws:
IOException
Copyright © 2003-2013 Atlassian. All Rights Reserved.