docx_rs/types/
emu.rs

1// One inch equates to 914400 EMUs and a centimeter is 360000 one pixel equates to 9525
2// https://openpyxl.readthedocs.io/en/stable/api/openpyxl.utils.units.html
3type Emu = u32;
4
5pub fn to_px(v: Emu) -> u32 {
6    v / 9525
7}
8
9pub fn from_px(v: Emu) -> u32 {
10    v * 9525
11}