MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / pixelToMMPhysical

Function pixelToMMPhysical

src/settings.cpp:57–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 qreal pixelToMMPhysical(qreal pixels)
58 {
59 auto ppi = Settings::getInstance().getSettingCached(Settings::General_PixelsPerInch).toReal();
60 return pixels * 25.4 / ppi;
61 }
62
63
64 qreal mmToPixelLogical(qreal millimeters)

Callers 1

pixelToLengthMethod · 0.85

Calls 1

getSettingCachedMethod · 0.80

Tested by

no test coverage detected