FGenericPlatformApplicationMisc::GetScreenPixelColor

Sample the displayed pixel color from anywhere on the screen using the OS

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 FLinearColor GetScreenPixelColor
(
    const struct FVector2D & InScreenPos,
    float InGamma
)

Remarks

Sample the displayed pixel color from anywhere on the screen using the OS

Returns

The color of the pixel displayed at the chosen location

Parameters

Parameter

Description

InScreenPos

The screen coords to sample for current pixel color

InGamma

Optional gamma correction to apply to the screen color

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