fop 0.93

org.apache.fop.render.afp.modca
Class ImageRasterData

java.lang.Object
  extended byorg.apache.fop.render.afp.modca.AbstractAFPObject
      extended byorg.apache.fop.render.afp.modca.ImageRasterData

public class ImageRasterData
extends AbstractAFPObject

Contains the image points that define the IM image raster pattern. A raster pattern is the array of presentation device pels that forms the image. The image data is uncompressed. Bits are grouped into bytes and are ordered from left to right within each byte. Each bit in the image data represents an image point and is mapped to presentation device pels as specified in the IOC structured field. A bit with value B'1' indicates a significant image point; a bit with value B'0' indicates an insignificant image point. Image points are recorded from left to right in rows that represents scan lines (X direction), and rows representing scan lines are recorded from top to bottom (Y direction). When the image is presented, all image points in a row are presented before any image points in the next sequential row are presented, and all rows have the same number of image points. If the total number of image points is not a multiple of 8, the last byte of the image data is padded to a byte boundary. The padding bits do not represent image points and are ignored by presentation devices.


Field Summary
 
Fields inherited from class org.apache.fop.render.afp.modca.AbstractAFPObject
log
 
Constructor Summary
ImageRasterData(byte[] rasterdata)
          Constructor for the image raster data object
 
Method Summary
 void writeDataStream(java.io.OutputStream os)
          Accessor method to write the AFP datastream for the Image Raster Data
 
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

ImageRasterData

public ImageRasterData(byte[] rasterdata)
Constructor for the image raster data object

Parameters:
rasterdata - The raster image data
Method Detail

writeDataStream

public void writeDataStream(java.io.OutputStream os)
                     throws java.io.IOException
Accessor method to write the AFP datastream for the Image Raster Data

Specified by:
writeDataStream in class AbstractAFPObject
Parameters:
os - The stream to write to
Throws:
java.io.IOException

fop 0.93

Copyright 1999-2006 The Apache Software Foundation. All Rights Reserved.