jxl.write
Class WritableImage
- jxl.biff.drawing.DrawingGroupObject, Image
public class WritableImage
extends jxl.biff.drawing.Drawing
Allows an image to be created, or an existing image to be manipulated
Note that co-ordinates and dimensions are given in cells, so that if for
example the width or height of a cell which the image spans is altered,
the image will have a correspondign distortion
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
|
WritableImage(double x, double y, double width, double height, File image) - Constructor
|
WritableImage(double x, double y, double width, double height, byte[] imageData) - Constructor
|
WritableImage(jxl.biff.drawing.DrawingGroupObject d, jxl.biff.drawing.DrawingGroup dg) - Constructor, used when copying sheets
|
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
|
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 , getColumn , getDrawingGroup , getHeight , getHeight , getHorizontalResolution , getImageBytes , getImageData , getImageFile , getImageFilePath , getImageHeight , getImageWidth , getMsoDrawingRecord , getObjectId , getOrigin , getReferenceCount , getRow , getShapeId , getSpContainer , getType , getVerticalResolution , getWidth , getWidth , getX , getY , isFirst , isFormObject , removeRow , setDrawingGroup , setHeight , setObjectId , setReferenceCount , setWidth , setX , setY , writeAdditionalRecords , writeTailRecords |
MOVE_AND_SIZE_WITH_CELLS
public 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
MOVE_WITH_CELLS
public static jxl.biff.drawing.Drawing.ImageAnchorProperties MOVE_WITH_CELLS
Image anchor properties which will move an image
when cells are inserted or deleted
NO_MOVE_OR_SIZE_WITH_CELLS
public 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
WritableImage
public WritableImage(double x,
double y,
double width,
double height,
File image)
Constructor
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 file
WritableImage
public WritableImage(double x,
double y,
double width,
double height,
byte[] imageData)
Constructor
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 data
WritableImage
public WritableImage(jxl.biff.drawing.DrawingGroupObject d,
jxl.biff.drawing.DrawingGroup dg)
Constructor, used when copying sheets
d
- the image to copydg
- the drawing group
getColumn
public double getColumn()
Accessor for the image position
- getColumn in interface Image
- getColumn in interface jxl.biff.drawing.Drawing
- the column number at which the image is positioned
getHeight
public double getHeight()
Accessor for the image dimensions
- getHeight in interface jxl.biff.drawing.DrawingGroupObject
- getHeight in interface Image
- getHeight in interface jxl.biff.drawing.Drawing
- the number of rows which this image spans
getImageAnchor
public jxl.biff.drawing.Drawing.ImageAnchorProperties getImageAnchor()
Accessor for the anchor properties
getImageData
public byte[] getImageData()
Accessor for the image data
- getImageData in interface jxl.biff.drawing.DrawingGroupObject
- getImageData in interface Image
- getImageData in interface jxl.biff.drawing.Drawing
getImageFile
public File getImageFile()
Accessor for the image file
- getImageFile in interface Image
- getImageFile in interface jxl.biff.drawing.Drawing
- the file which the image references
getRow
public double getRow()
Accessor for the image position
- getRow in interface Image
- getRow in interface jxl.biff.drawing.Drawing
- the row number at which the image is positions
getWidth
public double getWidth()
Accessor for the image dimensions
- getWidth in interface jxl.biff.drawing.DrawingGroupObject
- getWidth in interface Image
- getWidth in interface jxl.biff.drawing.Drawing
- the number of columns this image spans
setColumn
public void setColumn(double c)
Accessor for the image position
c
- the column number at which the image should be positioned
setHeight
public 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
- setHeight in interface jxl.biff.drawing.DrawingGroupObject
- setHeight in interface jxl.biff.drawing.Drawing
c
- the number of rows which this image should span
setImageAnchor
public void setImageAnchor(jxl.biff.drawing.Drawing.ImageAnchorProperties iap)
Accessor for the anchor properties
setRow
public void setRow(double c)
Accessor for the image position
c
- the row number at which the image should be positioned
setWidth
public 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
- setWidth in interface jxl.biff.drawing.DrawingGroupObject
- setWidth in interface jxl.biff.drawing.Drawing
c
- the number of columns which this image spans