imageBody

fnOdfImageBody imageBody(string imagePath, string mediaType, string width = "", string height = "") @safe pure nothrow

Constructs an OdfImageBody referencing an image file.

Parameters

imagePathPackage-relative path to the image (e.g. "Pictures/image.png").
mediaTypeMIME type of the image (e.g. "image/png").
widthOptional display width.
heightOptional display height.

Returns

A new OdfImageBody.