public class

ResizeOptions

extends Object
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

Constants
float DEFAULT_ROUNDUP_FRACTION
Fields
public final int height
public final float maxBitmapSize
public final float roundUpFraction
public final int width
Public Constructors
ResizeOptions(int width, int height)
ResizeOptions(int width, int height, float maxBitmapSize)
ResizeOptions(int width, int height, float maxBitmapSize, float roundUpFraction)
Public Methods
boolean equals(Object other)
static ResizeOptions forDimensions(int width, int height)
static ResizeOptions forSquareSize(int size)
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final float DEFAULT_ROUNDUP_FRACTION

Constant Value: 0.6666667

Fields

public final int height

public final float maxBitmapSize

public final float roundUpFraction

public final int width

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 int hashCode ()

public String toString ()