OpenXLSX 1.9.1
Loading...
Searching...
No Matches
XLEMUConverter.hpp
Go to the documentation of this file.
1#ifndef OPENXLSX_XLEMUCONVERTER_HPP
2#define OPENXLSX_XLEMUCONVERTER_HPP
3
4#include <cstdint>
5
6namespace OpenXLSX
7{
14 {
15 public:
16 static constexpr int32_t PIXELS_TO_EMU_FACTOR = 9525;
17
18 static constexpr int32_t pixelsToEmu(int32_t pixels) noexcept { return pixels * PIXELS_TO_EMU_FACTOR; }
19
20 static constexpr int32_t emuToPixels(int32_t emus) noexcept { return emus / PIXELS_TO_EMU_FACTOR; }
21 };
22} // namespace OpenXLSX
23
24#endif // OPENXLSX_XLEMUCONVERTER_HPP
Utility for handling Excel's complex coordinate and measurement conversions. Excel uses EMU (English ...
Definition XLEMUConverter.hpp:14
static constexpr int32_t pixelsToEmu(int32_t pixels) noexcept
Definition XLEMUConverter.hpp:18
static constexpr int32_t emuToPixels(int32_t emus) noexcept
Definition XLEMUConverter.hpp:20
static constexpr int32_t PIXELS_TO_EMU_FACTOR
Definition XLEMUConverter.hpp:16
Definition IZipArchive.hpp:18