|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.afp.modca.AbstractAFPObject
org.apache.fop.render.afp.modca.ImageSegment
public class ImageSegment
An Image Segment is represented by a set of self-defining fields, fields that describe their own contents. It starts with a Begin Segment, and ends with an End Segment. Between the Begin Segment and End Segment is the image information to be processed, called the Image Content. Only one Image Content can exist within a single IOCA Image Segment.
Field Summary |
---|
Fields inherited from class org.apache.fop.render.afp.modca.AbstractAFPObject |
---|
log |
Constructor Summary | |
---|---|
ImageSegment()
Default constructor for the ImageSegment. |
|
ImageSegment(java.lang.String name)
Constructor for the image segment with the specified name, the name must be a fixed length of eight characters. |
Method Summary | |
---|---|
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 |
setImageSize(int hresol,
int vresol,
int hsize,
int vsize)
Sets the image size parameters resolution, hsize and vsize. |
void |
writeDataStream(java.io.OutputStream os)
Accessor method to write the AFP datastream for the Image Segment |
Methods inherited from class org.apache.fop.render.afp.modca.AbstractAFPObject |
---|
writeObjectList |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageSegment()
public ImageSegment(java.lang.String name)
name
- The name of the image.Method Detail |
---|
public void setImageSize(int hresol, int vresol, int hsize, int vsize)
hresol
- The horizontal resolution of the image.vresol
- The vertical resolution of the image.hsize
- The horizontal size of the image.vsize
- The vertival size of the image.public 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 writeDataStream(java.io.OutputStream os) throws java.io.IOException
writeDataStream
in class AbstractAFPObject
os
- The stream to write to
java.io.IOException
- if an I/O exception occurred
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |