Image.ImageType| Constructor and Description |
|---|
ImageInputStream(String path,
CellAddress cellAddress) |
ImageInputStream(String path,
CellAddress cellAddress,
Image.ImageType type) |
| Modifier and Type | Method and Description |
|---|---|
Image |
address(CellAddress cellAddress)
"Builder-Look" method, set the address and return the .
|
CellAddress |
getCellAddress()
Return the
CellAddress of an Image. |
byte[] |
getResource()
The method returns the Image resource converted into byte array.
|
Image.ImageType |
getType()
Return the
Image.ImageType of an Image. |
void |
setPath(String path)
Sets the resource path.
|
void |
setType(Image.ImageType type)
Set the
Image.ImageType of an Image. |
String |
toString() |
Image |
type(Image.ImageType type)
"Builder-Look" method.
|
public ImageInputStream(String path, CellAddress cellAddress)
public ImageInputStream(String path, CellAddress cellAddress, Image.ImageType type)
public byte[] getResource()
throws IOException
ImagegetResource in interface ImageIOException - treats the resourcepublic void setPath(String path)
path - Path to image resourcepublic Image address(CellAddress cellAddress)
ImageSet the CellAddress.
And it returns the instance.
public Image type(Image.ImageType type)
Image Set the Image.ImageType of an Image.
And it returns the instance.
public CellAddress getCellAddress()
ImageCellAddress of an Image.getCellAddress in interface ImageCellAddress of an Image,
or {@link CellAddress#empty()} if nonepublic Image.ImageType getType()
ImageImage.ImageType of an Image.getType in interface ImageImage.ImageType of an Image,
or EXA.Spreadsheets.Image.Type.JPEG if nonepublic void setType(Image.ImageType type)
ImageImage.ImageType of an Image.Copyright © 2018. All rights reserved.