org.apache.fop.render.afp.modca
Class 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.
ImageSegment() - Default constructor for the ImageSegment.
|
ImageSegment(String name) - Constructor for the image segment with the specified name,
the name must be a fixed length of eight characters.
|
ImageSegment
public ImageSegment()
Default constructor for the ImageSegment.
ImageSegment
public ImageSegment(String name)
Constructor for the image segment 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.
setImageSize
public void setImageSize(int hresol,
int vresol,
int hsize,
int vsize)
Sets the image size parameters
resolution, hsize and 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.
writeDataStream
public void writeDataStream(OutputStream os)
throws IOException
Accessor method to write the AFP datastream for the Image Segment
- writeDataStream in interface AbstractAFPObject
os
- The stream to write to
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.