fop 0.95

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

java.lang.Object
  extended by org.apache.fop.render.afp.modca.AbstractAFPObject
      extended by org.apache.fop.render.afp.modca.ImageContent

public class ImageContent
extends AbstractAFPObject


Field Summary
 
Fields inherited from class org.apache.fop.render.afp.modca.AbstractAFPObject
log
 
Constructor Summary
ImageContent()
          Constructor for the image content
 
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 Content
 
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

ImageContent

public ImageContent()
Constructor for the image content

Method Detail

setImageSize

public void setImageSize(int hresol,
                         int vresol,
                         int hsize,
                         int vsize)
Sets the image size parameters resolution, hsize and vsize.

Parameters:
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.

setImageEncoding

public void setImageEncoding(byte encoding)
Sets the image encoding.

Parameters:
encoding - The image encoding.

setImageCompression

public void setImageCompression(byte compression)
Sets the image compression.

Parameters:
compression - The image compression.

setImageIDESize

public void setImageIDESize(byte size)
Sets the image IDE size.

Parameters:
size - The IDE size.

setImageIDEColorModel

public void setImageIDEColorModel(byte colorModel)
Sets the image IDE color model.

Parameters:
colorModel - the IDE color model.

setImageData

public void setImageData(byte[] data)
Set the data of the image.


writeDataStream

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

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

fop 0.95

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