@Immutable
public class ImageSpecification
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
ImageChromaSamplingMode |
chromaSamplingMode |
ImageFormat |
format |
ImageMetadata |
metadata |
ImageOrientation |
orientation |
ImagePixelSpecification |
pixelSpecification |
ImageSize |
size |
| Constructor and Description |
|---|
ImageSpecification(ImageSize size,
ImageFormat format,
ImagePixelSpecification pixelSpecification)
Constructor for an image specification with default orientation, no sampling and empty
metadata.
|
ImageSpecification(ImageSize size,
ImageFormat format,
ImagePixelSpecification pixelSpecification,
ImageOrientation orientation,
ImageChromaSamplingMode chromaSamplingMode,
ImageMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
static ImageSpecification |
fromBitmap(android.graphics.Bitmap bitmap)
Creates an image specification from the provided
Bitmap object. |
int |
hashCode() |
java.lang.String |
toString() |
public final ImageSize size
public final ImageFormat format
public final ImagePixelSpecification pixelSpecification
public final ImageOrientation orientation
@Nullable public final ImageChromaSamplingMode chromaSamplingMode
public final ImageMetadata metadata
public ImageSpecification(ImageSize size, ImageFormat format, ImagePixelSpecification pixelSpecification)
public ImageSpecification(ImageSize size, ImageFormat format, ImagePixelSpecification pixelSpecification, ImageOrientation orientation, @Nullable ImageChromaSamplingMode chromaSamplingMode, ImageMetadata metadata)
public static ImageSpecification fromBitmap(android.graphics.Bitmap bitmap)
Bitmap object. In particular, the
pixel specification will be derived from the Bitmap.Config.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object