public interface Image
extends java.io.Serializable
Image represents an image that can be manipulated by the
ImagesService.| Modifier and Type | Interface and Description |
|---|---|
static class |
Image.Format
Image formats usable by the images api.
|
| Modifier and Type | Method and Description |
|---|---|
BlobKey |
getBlobKey()
If this image is backed by a blob, return the associated
BlobKey. |
Image.Format |
getFormat()
Gets the encoding format of the image.
|
int |
getHeight()
Gets the height of the image.
|
byte[] |
getImageData()
Gets the raw imageData of the image.
|
int |
getWidth()
Gets the width of the image.
|
void |
setImageData(byte[] imageData)
Sets the image to contain the image data contained in
imageData. |
int getWidth()
java.lang.IllegalArgumentException - If the imageData provided is
invalidint getHeight()
java.lang.IllegalArgumentException - If the imageData provided is
invalidImage.Format getFormat()
java.lang.IllegalArgumentException - If the imageData provided is
invalidbyte[] getImageData()
void setImageData(byte[] imageData)
imageData.imageData - new image data for the image to storejava.lang.IllegalArgumentException - If imageData is null or empty