public class WritableImage
extends jxl.biff.drawing.Drawing
Modifier and Type | Field and Description |
---|---|
static jxl.biff.drawing.Drawing.ImageAnchorProperties |
MOVE_AND_SIZE_WITH_CELLS
Image anchor properties which will move and resize an image
along with the cells
|
static jxl.biff.drawing.Drawing.ImageAnchorProperties |
MOVE_WITH_CELLS
Image anchor properties which will move an image
when cells are inserted or deleted
|
static jxl.biff.drawing.Drawing.ImageAnchorProperties |
NO_MOVE_OR_SIZE_WITH_CELLS
Image anchor properties which will leave an image unaffected when
other cells are inserted, removed or resized
|
Constructor and Description |
---|
WritableImage(double x,
double y,
double width,
double height,
byte[] imageData)
Constructor
|
WritableImage(double x,
double y,
double width,
double height,
java.io.File image)
Constructor
|
WritableImage(jxl.biff.drawing.DrawingGroupObject d,
jxl.biff.drawing.DrawingGroup dg)
Constructor, used when copying sheets
|
Modifier and Type | Method and Description |
---|---|
double |
getColumn()
Accessor for the image position
|
double |
getHeight()
Accessor for the image dimensions
|
jxl.biff.drawing.Drawing.ImageAnchorProperties |
getImageAnchor()
Accessor for the anchor properties
|
byte[] |
getImageData()
Accessor for the image data
|
java.io.File |
getImageFile()
Accessor for the image file
|
double |
getRow()
Accessor for the image position
|
double |
getWidth()
Accessor for the image dimensions
|
void |
setColumn(double c)
Accessor for the image position
|
void |
setHeight(double c)
Accessor for the image dimensions
Note that the actual size of the rendered image will depend on the
height of the rows it spans
|
void |
setImageAnchor(jxl.biff.drawing.Drawing.ImageAnchorProperties iap)
Accessor for the anchor properties
|
void |
setRow(double c)
Accessor for the image position
|
void |
setWidth(double c)
Accessor for the image dimensions
Note that the actual size of the rendered image will depend on the
width of the columns it spans
|
getBlipId, getDrawingGroup, getHeight, getHorizontalResolution, getImageBytes, getImageFilePath, getImageHeight, getImageWidth, getMsoDrawingRecord, getObjectId, getOrigin, getReferenceCount, getShapeId, getSpContainer, getType, getVerticalResolution, getWidth, getX, getY, isFirst, isFormObject, removeRow, setDrawingGroup, setObjectId, setReferenceCount, setX, setY, writeAdditionalRecords, writeTailRecords
public static jxl.biff.drawing.Drawing.ImageAnchorProperties MOVE_AND_SIZE_WITH_CELLS
public static jxl.biff.drawing.Drawing.ImageAnchorProperties MOVE_WITH_CELLS
public static jxl.biff.drawing.Drawing.ImageAnchorProperties NO_MOVE_OR_SIZE_WITH_CELLS
public WritableImage(double x, double y, double width, double height, java.io.File image)
x
- the column number at which to position the imagey
- the row number at which to position the imagewidth
- the number of columns cells which the image spansheight
- the number of rows which the image spansimage
- the source image filepublic WritableImage(double x, double y, double width, double height, byte[] imageData)
x
- the column number at which to position the imagey
- the row number at which to position the imagewidth
- the number of columns cells which the image spansheight
- the number of rows which the image spansimageData
- the image datapublic WritableImage(jxl.biff.drawing.DrawingGroupObject d, jxl.biff.drawing.DrawingGroup dg)
d
- the image to copydg
- the drawing grouppublic double getColumn()
public void setColumn(double c)
c
- the column number at which the image should be positionedpublic double getRow()
public void setRow(double c)
c
- the row number at which the image should be positionedpublic double getWidth()
public void setWidth(double c)
setWidth
in interface jxl.biff.drawing.DrawingGroupObject
setWidth
in class jxl.biff.drawing.Drawing
c
- the number of columns which this image spanspublic double getHeight()
public void setHeight(double c)
setHeight
in interface jxl.biff.drawing.DrawingGroupObject
setHeight
in class jxl.biff.drawing.Drawing
c
- the number of rows which this image should spanpublic java.io.File getImageFile()
getImageFile
in interface Image
getImageFile
in class jxl.biff.drawing.Drawing
public byte[] getImageData()
getImageData
in interface jxl.biff.drawing.DrawingGroupObject
getImageData
in interface Image
getImageData
in class jxl.biff.drawing.Drawing
public void setImageAnchor(jxl.biff.drawing.Drawing.ImageAnchorProperties iap)
setImageAnchor
in class jxl.biff.drawing.Drawing
public jxl.biff.drawing.Drawing.ImageAnchorProperties getImageAnchor()
getImageAnchor
in class jxl.biff.drawing.Drawing