com.nostra13.universalimageloader.core.assist
Class ImageSize

java.lang.Object
  extended by com.nostra13.universalimageloader.core.assist.ImageSize

public class ImageSize
extends Object

Present width and height values

Since:
1.0.0
Author:
Sergey Tarasevich (nostra13[at]gmail[dot]com)

Constructor Summary
ImageSize(int width, int height)
           
ImageSize(int width, int height, int rotation)
           
 
Method Summary
 int getHeight()
           
 int getWidth()
           
 ImageSize scale(float scale)
          Scales dimensions according to incoming scale.
 ImageSize scaleDown(int sampleSize)
          Scales down dimensions in sampleSize times.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageSize

public ImageSize(int width,
                 int height)

ImageSize

public ImageSize(int width,
                 int height,
                 int rotation)
Method Detail

getWidth

public int getWidth()

getHeight

public int getHeight()

scaleDown

public ImageSize scaleDown(int sampleSize)
Scales down dimensions in sampleSize times. Returns new object.


scale

public ImageSize scale(float scale)
Scales dimensions according to incoming scale. Returns new object.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011-2014. All Rights Reserved.