Expand description
Image types for embedded or referenced images.
Image represents an image reference within a document. Core stores
only the path and dimensions – actual binary data lives in the Smithy
layer (inside the HWPX ZIP or HWP5 BinData stream).
§Examples
use hwpforge_core::image::{Image, ImageFormat};
use hwpforge_foundation::HwpUnit;
let img = Image {
path: "BinData/image1.png".to_string(),
width: HwpUnit::from_mm(50.0).unwrap(),
height: HwpUnit::from_mm(30.0).unwrap(),
format: ImageFormat::Png,
caption: None,
};
assert!(img.path.ends_with(".png"));Structs§
- Image
- An image reference within the document.
- Image
Store - Storage for binary image data keyed by path.
Enums§
- Image
Format - Supported image formats.