|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Image
Image represents an image that can be manipulated by the
ImagesService.
| Nested Class Summary | |
|---|---|
static class |
Image.Format
Image formats usable by the images api. |
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 store
java.lang.IllegalArgumentException - If imageData is null or emptyBlobKey getBlobKey()
BlobKey. If this method returns non-null, none of the
other methods will currently be available.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||