org.apache.fop.render.afp.modca
public class ImageObject extends AbstractNamedAFPObject
name, nameBytes
log
Constructor and Description |
---|
ImageObject(java.lang.String name)
Constructor for the image object with the specified name,
the name must be a fixed length of eight characters.
|
Modifier and Type | Method and Description |
---|---|
void |
setImageCompression(byte compression)
Sets the image compression.
|
void |
setImageData(byte[] data)
Set the data of the image.
|
void |
setImageEncoding(byte encoding)
Sets the image encoding.
|
void |
setImageIDEColorModel(byte colorModel)
Sets the image IDE color model.
|
void |
setImageIDESize(byte size)
Sets the image IDE size.
|
void |
setImageParameters(int xresol,
int yresol,
int width,
int height)
Set the dimensions of the image.
|
void |
setImageViewport(int x,
int y,
int w,
int h,
int r,
int wr,
int hr)
Sets the image display area position and size.
|
void |
setObjectEnvironmentGroup(ObjectEnvironmentGroup objectEnvironmentGroup)
Sets the ObjectEnvironmentGroup.
|
void |
writeDataStream(java.io.OutputStream os)
Accessor method to write the AFP datastream for the Image Object
|
writeObjectList
public ImageObject(java.lang.String name)
name
- The name of the image.public void setImageViewport(int x, int y, int w, int h, int r, int wr, int hr)
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 imagewr
- the width resolution of the imagehr
- the height resolution of the imagepublic void setImageParameters(int xresol, int yresol, int width, int height)
xresol
- the x resolution of the imageyresol
- the y resolution of the imagewidth
- the image widthheight
- the image heightpublic void setImageEncoding(byte encoding)
encoding
- The image encoding.public void setImageCompression(byte compression)
compression
- The image compression.public void setImageIDESize(byte size)
size
- The IDE size.public void setImageIDEColorModel(byte colorModel)
colorModel
- the IDE color model.public void setImageData(byte[] data)
data
- The image datapublic void setObjectEnvironmentGroup(ObjectEnvironmentGroup objectEnvironmentGroup)
objectEnvironmentGroup
- The objectEnvironmentGroup to setpublic void writeDataStream(java.io.OutputStream os) throws java.io.IOException
writeDataStream
in class AbstractAFPObject
os
- The stream to write tojava.io.IOException
- thrown if an I/O exception of some sort has occurredCopyright 1999-2008 The Apache Software Foundation. All Rights Reserved.