@Immutable
public class ImageSize
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
height
The size's height.
|
static int |
MAX_IMAGE_SIDE_DIMENSION
Setting to 2**16 as this is the smallest common denominator for all common image libraries that
we are interested in.
|
int |
width
The size's width.
|
| Constructor and Description |
|---|
ImageSize(int width,
int height)
Creates a new
ImageSize |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString() |
public static final int MAX_IMAGE_SIDE_DIMENSION
public final int width
public final int height
public ImageSize(int width,
int height)
ImageSizewidth - Must be within [0, MAX_IMAGE_SIDE_DIMENSION]height - Must be within [0, MAX_IMAGE_SIDE_DIMENSION]