FGenericPlatformApplicationMisc::ConvertPixelsToInches

If we know or can approximate the pixel density of the screen we will convert the incoming pixels to inches on the device.

Windows
MacOS
Linux

References

Module

ApplicationCore

Header

/Engine/Source/Runtime/ApplicationCore/Public/GenericPlatform/GenericPlatformApplicationMisc.h

Include

#include "GenericPlatform/GenericPlatformApplicationMisc.h"

Source

/Engine/Source/Runtime/ApplicationCore/Private/GenericPlatform/GenericPlatformApplicationMisc.cpp

Syntax

static EScreenPhysicalAccuracy ConvertPixelsToInches
(
    float Pixels,
    float & OutInches
)

Remarks

If we know or can approximate the pixel density of the screen we will convert the incoming pixels to inches on the device. If the accuracy is unknown OutInches will be set to 0.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss