Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » rtf » graphic » [javadoc | source]
com.lowagie.text.rtf.graphic
public class: RtfImage [javadoc | source]
java.lang.Object
   com.lowagie.text.rtf.RtfElement
      com.lowagie.text.rtf.graphic.RtfImage

All Implemented Interfaces:
    RtfBasicElement

The RtfImage contains one image. Supported image types are jpeg, png, wmf, bmp.
Field Summary
public static final  byte[] byte2charLUT    lookup table used for converting bytes to hex chars. TODO Should probably be refactored into a helper class 
Fields inherited from com.lowagie.text.rtf.RtfElement:
document,  inTable,  inHeader
Constructor:
 public RtfImage(RtfDocument doc,
    Image image) throws DocumentException 
    Constructs a RtfImage for an Image.
    Parameters:
    doc - The RtfDocument this RtfImage belongs to
    image - The Image that this RtfImage wraps
    Throws:
    DocumentException - If an error occurred accessing the image content
Method from com.lowagie.text.rtf.graphic.RtfImage Summary:
setAlignment,   setTopLevelElement,   writeContent
Methods from com.lowagie.text.rtf.RtfElement:
intToByteArray,   isInTable,   setInHeader,   setInTable,   setRtfDocument,   writeContent
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.rtf.graphic.RtfImage Detail:
 public  void setAlignment(int alignment) 
    Sets the alignment of this RtfImage. Uses the alignments from com.lowagie.text.Element.
 public  void setTopLevelElement(boolean topLevelElement) 
    Set whether this RtfImage should behave like a top level element and enclose itself in a paragraph.
 public  void writeContent(OutputStream result) throws IOException 
    Writes the RtfImage content