OpenXLSX 1.9.1
Loading...
Searching...
No Matches
OpenXLSX::XLEMUConverter Class Reference

Utility for handling Excel's complex coordinate and measurement conversions. Excel uses EMU (English Metric Units) for drawings. 1 inch = 914400 EMUs. At 96 DPI (Standard), 1 pixel = 9525 EMUs. More...

#include <XLEMUConverter.hpp>

Static Public Member Functions

static constexpr int32_t pixelsToEmu (int32_t pixels) noexcept
 
static constexpr int32_t emuToPixels (int32_t emus) noexcept
 

Static Public Attributes

static constexpr int32_t PIXELS_TO_EMU_FACTOR = 9525
 

Detailed Description

Utility for handling Excel's complex coordinate and measurement conversions. Excel uses EMU (English Metric Units) for drawings. 1 inch = 914400 EMUs. At 96 DPI (Standard), 1 pixel = 9525 EMUs.

Member Function Documentation

◆ emuToPixels()

static constexpr int32_t OpenXLSX::XLEMUConverter::emuToPixels ( int32_t  emus)
inlinestaticconstexprnoexcept

◆ pixelsToEmu()

static constexpr int32_t OpenXLSX::XLEMUConverter::pixelsToEmu ( int32_t  pixels)
inlinestaticconstexprnoexcept

Field Documentation

◆ PIXELS_TO_EMU_FACTOR

constexpr int32_t OpenXLSX::XLEMUConverter::PIXELS_TO_EMU_FACTOR = 9525
staticconstexpr

The documentation for this class was generated from the following file: