com.atlassian.jira.issue.thumbnail
Class StreamingImageRenderer
java.lang.Object
com.atlassian.jira.issue.thumbnail.StreamingImageRenderer
public class StreamingImageRenderer
- extends Object
Image renderer using a streaming approach. Doesn't yield high quality thumbnails but doesn't need to rasterize
the whole image at once.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamingImageRenderer
public StreamingImageRenderer()
renderThumbnail
public Dimensions renderThumbnail(InputStream inputStream,
File thumbnailFile,
int maxWidth,
int maxHeight)
throws IOException
- Throws:
IOException
maintainAspectRatio
public int maintainAspectRatio(Dimension original,
Dimension target)
Copyright © 2002-2013 Atlassian. All Rights Reserved.