This content is for v4.x version. Switch to the Stable version.
Picture
Details about adding and manipulating picture to a worksheet
Basic Code Sample
Section titled βBasic Code Sampleβuse draviavemal_openxml_office::spreadsheet_2007::models::ExcelPictureSetting;
let mut sheet = excel.get_worksheet_mut("image".to_string()).expect("Failed to get sheet");sheet.add_picture("./tom_and_jerry.jpg", ExcelPictureSetting::default()).expect("Failed to add image");sheet.flush().expect("Failed to save sheet");Not yet available.
ExcelPictureSetting Options
Section titled βExcelPictureSetting Optionsβ| Property | Type | Details |
|---|---|---|
| hyperlinkProperties | HyperlinkProperties | Attach hyperlink to the image |
| imageType | ImageType | Image extension type |
| anchorEditType | AnchorEditType | Mode of picture starting point |
| from | AnchorPosition | Top Left coordinate |
| to | AnchorPosition | Bottom right X coordinate |
AnchorPosition Options
Section titled βAnchorPosition Optionsβ| Property | Type | Details |
|---|---|---|
| column | uint | |
| columnOffset | uint | |
| row | uint | |
| rowOffset | uint |