com.atlassian.core.util.thumbnail
Class DimensionsHelper

java.lang.Object
  extended by com.atlassian.core.util.thumbnail.DimensionsHelper

public class DimensionsHelper
extends Object


Constructor Summary
DimensionsHelper()
           
 
Method Summary
 Dimensions determineScaledDimensions(int maxWidth, int maxHeight, Image image)
           
 Dimensions determineScaledDimensions(int maxWidth, int maxHeight, int imageWidth, int imageHeight)
           
 Dimensions dimensionsForImage(InputStream inputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DimensionsHelper

public DimensionsHelper()
Method Detail

dimensionsForImage

public Dimensions dimensionsForImage(InputStream inputStream)
                              throws IOException
Throws:
IOException

determineScaledDimensions

public Dimensions determineScaledDimensions(int maxWidth,
                                            int maxHeight,
                                            Image image)

determineScaledDimensions

public Dimensions determineScaledDimensions(int maxWidth,
                                            int maxHeight,
                                            int imageWidth,
                                            int imageHeight)


Copyright © 2015 Atlassian. All rights reserved.