Table of Contents

Class RtfImage

Namespace
iTextSharp.text.rtf.graphic
Assembly
iTextSharp.LGPLv2.Core.dll

The RtfImage contains one image. Supported image types are jpeg, png, wmf, bmp. @version \(Version:\) @author Mark Hall (Mark.Hall@mail.room3b.eu) @author Paulo Soares

public class RtfImage : RtfElement, IRtfBasicElement, IRtfElementInterface
Inheritance
RtfImage
Implements
Inherited Members

Constructors

RtfImage(RtfDocument, Image)

Constructs a RtfImage for an Image. @throws DocumentException If an error occured accessing the image content

public RtfImage(RtfDocument doc, Image image)

Parameters

doc RtfDocument

The RtfDocument this RtfImage belongs to

image Image

The Image that this RtfImage wraps

Fields

Byte2CharLut

lookup table used for converting bytes to hex chars.

public static readonly byte[] Byte2CharLut

Field Value

byte[]

Methods

SetAlignment(int)

Sets the alignment of this RtfImage. Uses the alignments from com.lowagie.text.Element.

public void SetAlignment(int alignment)

Parameters

alignment int

The alignment to use.

SetTopLevelElement(bool)

Set whether this RtfImage should behave like a top level element and enclose itself in a paragraph.

public void SetTopLevelElement(bool topLevelElement)

Parameters

topLevelElement bool

Whether to behave like a top level element.

WriteContent(Stream)

Writes the RtfImage content

public override void WriteContent(Stream outp)

Parameters

outp Stream