java.lang.Object |
↳ |
com.facebook.imagepipeline.common.ResizeOptions |
Class Overview
Options for resizing.
Describes the target bounds for the image (width, height) in pixels, as well as the
downscaling policy to employ.
Summary
Public Constructors |
|
ResizeOptions(int width, int height)
|
|
ResizeOptions(int width, int height, float maxBitmapSize)
|
|
ResizeOptions(int width, int height, float maxBitmapSize, float roundUpFraction)
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Constants
public
static
final
float
DEFAULT_ROUNDUP_FRACTION
Constant Value:
0.6666667
Fields
public
final
float
maxBitmapSize
public
final
float
roundUpFraction
Public Constructors
public
ResizeOptions
(int width, int height)
public
ResizeOptions
(int width, int height, float maxBitmapSize)
public
ResizeOptions
(int width, int height, float maxBitmapSize, float roundUpFraction)
Public Methods
public
boolean
equals
(Object other)
public
static
ResizeOptions
forDimensions
(int width, int height)
Returns
- new ResizeOptions, if the width and height values are valid, and null otherwise
public
static
ResizeOptions
forSquareSize
(int size)
Returns
- new ResizeOptions, if the width and height values are valid, and null otherwise
public
String
toString
()