@Immutable public class LoadedImageInstance extends Object implements IUIImageInstance
| Constructor and Description |
|---|
LoadedImageInstance(File imageFile,
String mime,
Dimension dimension) |
| Modifier and Type | Method and Description |
|---|---|
Dimension |
getDimension()
The size of the image, in pixels.
|
InputStream |
getImage()
Return an input stream that contains the byte data for the current image.
|
int |
getImageSize()
The size of the image, in bytes, if known; -1 if unknown.
|
String |
getMimeType()
Return the mime type of the current image, which must be one of the core image mime
types for png, jpg or gif.
|
public InputStream getImage() throws Exception
IUIImageInstanceIUnbufferedPartFactory).getImage in interface IUIImageInstanceExceptionpublic Dimension getDimension()
IUIImageInstancegetDimension in interface IUIImageInstancepublic int getImageSize()
IUIImageInstancegetImageSize in interface IUIImageInstancepublic String getMimeType()
IUIImageInstancegetMimeType in interface IUIImageInstanceCopyright © 2017 etc.to. All rights reserved.