jxl

Interface Image

Known Implementing Classes:
WritableImage

public interface Image

Accessor functions for an image

Method Summary

double
getColumn()
Accessor for the image position
double
getHeight()
Accessor for the image dimensions
double
getHeight(common.LengthUnit unit)
Get the height of this image as rendered within Excel
double
getHorizontalResolution(common.LengthUnit unit)
Gets the horizontal resolution of the image, if that information is available.
byte[]
getImageData()
Accessor for the image data
File
getImageFile()
Accessor for the image file
int
getImageHeight()
Gets the height of the image.
int
getImageWidth()
Gets the width of the image.
double
getRow()
Accessor for the image position
double
getVerticalResolution(common.LengthUnit unit)
Gets the vertical resolution of the image, if that information is available.
double
getWidth()
Accessor for the image dimensions
double
getWidth(common.LengthUnit unit)
Get the width of this image as rendered within Excel

Method Details

getColumn

public double getColumn()
Accessor for the image position
Returns:
the column number at which the image is positioned

getHeight

public double getHeight()
Accessor for the image dimensions
Returns:
the number of rows which this image spans

getHeight

public double getHeight(common.LengthUnit unit)
Get the height of this image as rendered within Excel
Parameters:
unit - the unit of measurement
Returns:
the height of the image within Excel

getHorizontalResolution

public double getHorizontalResolution(common.LengthUnit unit)
Gets the horizontal resolution of the image, if that information is available.
Returns:
the number of dots per unit specified, if available, 0 otherwise

getImageData

public byte[] getImageData()
Accessor for the image data
Returns:
the image data

getImageFile

public File getImageFile()
Accessor for the image file
Returns:
the file which the image references

getImageHeight

public int getImageHeight()
Gets the height of the image. Note that this is the height of the underlying image, and does not take into account any size manipulations that may have occurred when the image was added into Excel
Returns:
the image height in pixels

getImageWidth

public int getImageWidth()
Gets the width of the image. Note that this is the width of the underlying image, and does not take into account any size manipulations that may have occurred when the image was added into Excel
Returns:
the image width in pixels

getRow

public double getRow()
Accessor for the image position
Returns:
the row number at which the image is positioned

getVerticalResolution

public double getVerticalResolution(common.LengthUnit unit)
Gets the vertical resolution of the image, if that information is available.
Returns:
the number of dots per unit specified, if available, 0 otherwise

getWidth

public double getWidth()
Accessor for the image dimensions
Returns:
the number of columns this image spans

getWidth

public double getWidth(common.LengthUnit unit)
Get the width of this image as rendered within Excel
Parameters:
unit - the unit of measurement
Returns:
the width of the image within Excel