ddn.odf.image
ODF image document body model.
Provides typed access to image ODF packages (.odi). Image documents wrap a primary image stream inside an ODF package with standard metadata, manifest, and minimal content.xml.
Image constructs
OdfImageBodydescribes the primary image payload (path, media type)- Image formats commonly used: PNG, JPEG, SVG, TIFF, GIF, BMP
- Package structure:
mimetype,content.xml,META-INF/manifest.xml, and the image file (e.g.Pictures/image.png) - Round-trip preservation of metadata and manifest entries
struct OdfImageBody
Types 1
structOdfImageBody
Describes the primary image payload in an ODF image document.
Fields
string imagePathstring mediaTypestring widthstring heightMethods
Functions 2
fn
OdfImageBody imageBody(string imagePath, string mediaType,
string width = "", string height = "") @safe pure nothrowConstructs an `OdfImageBody` referencing an image file.