org.apache.fop.render.afp.modca
Class ImageObject
An IOCA Image Data Object
ImageObject(String name) - Constructor for the image object with the specified name,
the name must be a fixed length of eight characters.
|
ImageObject
public ImageObject(String name)
Constructor for the image object with the specified name,
the name must be a fixed length of eight characters.
name
- The name of the image.
setImageCompression
public void setImageCompression(byte compression)
Sets the image compression.
compression
- The image compression.
setImageData
public void setImageData(data[] )
Set the data of the image.
setImageEncoding
public void setImageEncoding(byte encoding)
Sets the image encoding.
encoding
- The image encoding.
setImageIDEColorModel
public void setImageIDEColorModel(byte colorModel)
Sets the image IDE color model.
setImageIDESize
public void setImageIDESize(byte size)
Sets the image IDE size.
setImageParameters
public void setImageParameters(int xresol,
int yresol,
int width,
int height)
Set the dimensions of the image.
xresol
- the x resolution of the imageyresol
- the y resolution of the imagewidth
- the image widthheight
- the image height
setImageViewport
public void setImageViewport(int x,
int y,
int w,
int h,
int r)
Sets the image display area position and size.
x
- the x position of the imagey
- the y position of the imagew
- the width of the imageh
- the height of the imager
- the rotation of the image
setObjectEnvironmentGroup
public void setObjectEnvironmentGroup(ObjectEnvironmentGroup objectEnvironmentGroup)
Sets the ObjectEnvironmentGroup.
objectEnvironmentGroup
- The objectEnvironmentGroup to set
writeDataStream
public void writeDataStream(OutputStream os)
throws IOException
Accessor method to write the AFP datastream for the Image Object
- writeDataStream in interface AbstractAFPObject
os
- The stream to write to
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.