com.atlassian.jira.issue.thumbnail
Class StreamingImageRenderer

java.lang.Object
  extended by 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.


Constructor Summary
StreamingImageRenderer()
           
 
Method Summary
 int maintainAspectRatio(Dimension original, Dimension target)
           
 Dimensions renderThumbnail(InputStream inputStream, File thumbnailFile, int maxWidth, int maxHeight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamingImageRenderer

public StreamingImageRenderer()
Method Detail

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-2014 Atlassian. All Rights Reserved.