public final class ImageSize
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
android.graphics.Bitmap.Config |
config |
static android.os.Parcelable.Creator<ImageSize> |
CREATOR |
int |
height |
int |
width |
static ImageSize |
ZERO |
Modifier | Constructor and Description |
---|---|
|
ImageSize(int[] size) |
|
ImageSize(int[] size,
android.graphics.Bitmap.Config config) |
|
ImageSize(int width,
int height) |
|
ImageSize(int width,
int height,
android.graphics.Bitmap.Config config) |
protected |
ImageSize(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
float |
getAspect() |
int |
hashCode() |
boolean |
isZero() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final ImageSize ZERO
public final int width
public final int height
public android.graphics.Bitmap.Config config
public static final android.os.Parcelable.Creator<ImageSize> CREATOR
public ImageSize(int width, int height)
public ImageSize(int width, int height, android.graphics.Bitmap.Config config)
public ImageSize(int[] size)
public ImageSize(int[] size, android.graphics.Bitmap.Config config)
protected ImageSize(android.os.Parcel in)
public float getAspect()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isZero()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public java.lang.String toString()
toString
in class java.lang.Object