FLinearColor::ToFColor

Quantizes the linear color and returns the result as a [FColor](API\Runtime\Core\Math\FColor) with optional sRGB conversion and quality as goal.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/Color.h

Include

#include "Math/Color.h"

Source

/Engine/Source/Runtime/Core/Private/Math/Color.cpp

Syntax

FColor ToFColor
(
    const bool bSRGB
) const

Remarks

Quantizes the linear color and returns the result as a FColor with optional sRGB conversion and quality as goal.

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