Skip to main content

IdxRichEditSubDocument.InsertImage(IdxRichEditDocumentPosition,TGraphic) Method

Inserts an inline picture at the specified position in the parent document.

Declaration

function InsertImage(const APos: IdxRichEditDocumentPosition; AImage: TGraphic): IdxRichEditDocumentImage;

Parameters

Name Type Description
APos IdxRichEditDocumentPosition

The target document position.

AImage TGraphic

The source image container with a bitmap.

Returns

Type Description
IdxRichEditDocumentImage

The created inline image.

Remarks

Call the InsertImage function to add a new inline image at any position in the parent subdocument.

Limitations

An inline document image’s Office Image container does not support vector images to ensure compatibility with popular document formats. Ensure that the source image container (a TdxSmartImage or TdxSmartGlyph instance) does not contain an SVG image. Otherwise, an exception occurs.

Tip

You can call the image container’s ConvertToBitmap procedure to rasterize the stored image.

See Also