| |
|
| java.lang.Object com.lowagie.text.rtf.RtfElement com.lowagie.text.rtf.graphic.RtfImage
RtfImage | public class RtfImage extends RtfElement (Code) | | The RtfImage contains one image. Supported image types are jpeg, png, wmf, bmp.
version: $Id: RtfImage.java 2825 2007-06-04 09:15:21Z blowagie $ author: Mark Hall (mhall@edu.uni-klu.ac.at) author: Paulo Soares author: Thomas Bickel (tmb99@inode.at) |
Field Summary | |
final public static byte[] | byte2charLUT lookup table used for converting bytes to hex chars. |
Method Summary | |
public void | setAlignment(int alignment) Sets the alignment of this RtfImage. | public void | setTopLevelElement(boolean topLevelElement) Set whether this RtfImage should behave like a top level element
and enclose itself in a paragraph. | public byte[] | write() | public void | writeContent(OutputStream result) |
byte2charLUT | final public static byte[] byte2charLUT(Code) | | lookup table used for converting bytes to hex chars.
TODO Should probably be refactored into a helper class
|
RtfImage | public RtfImage(RtfDocument doc, Image image) throws DocumentException(Code) | | Constructs a RtfImage for an Image.
Parameters: doc - The RtfDocument this RtfImage belongs to Parameters: image - The Image that this RtfImage wraps throws: DocumentException - If an error occured accessing the image content |
setAlignment | public void setAlignment(int alignment)(Code) | | Sets the alignment of this RtfImage. Uses the alignments from com.lowagie.text.Element.
Parameters: alignment - The alignment to use. |
setTopLevelElement | public void setTopLevelElement(boolean topLevelElement)(Code) | | Set whether this RtfImage should behave like a top level element
and enclose itself in a paragraph.
Parameters: topLevelElement - Whether to behave like a top level element. |
|
|
|