OfficeIMO

API Reference

Class

ImageEmbedder

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word
Modifiers static

Provides methods for embedding images into Wordprocessing documents.

Inheritance

  • Object
  • ImageEmbedder

Methods

public static Run CreateImageRun(MainDocumentPart mainPart, String src) #
Returns: Run

Creates a run element containing an image loaded from the specified source.

Parameters

mainPart DocumentFormat.OpenXml.Packaging.MainDocumentPart requiredposition: 0
Main document part where the image will be stored.
src System.String requiredposition: 1
Path, URI or data URI representing the image.

Returns

A Run containing the embedded image.

public static Byte[] GetImageBytes(WordImage image) #
Returns: Byte[]

Retrieves raw bytes from a WordImage instance.

Parameters

image OfficeIMO.Word.WordImage requiredposition: 0
Image to extract bytes from.

Returns

Binary data representing the image.