Navigation
API > API/Runtime > API/Runtime/ColorManagement
References
| Module | ColorManagement |
| Header | /Engine/Source/Runtime/ColorManagement/Public/ColorSpace.h |
| Include | #include "ColorSpace.h" |
Syntax
class FColorSpace
Remarks
Color space definition as 4 chromaticity coordinates, in double precision internally.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FColorSpace () |
Constructor | ||
FColorSpace
(
UE::Color::EColorSpace ColorSpaceType |
Constructor | ||
FColorSpace
(
FColorSpace&& |
|||
FColorSpace
(
const FColorSpace& |
|||
FColorSpace
(
const FVector2d& InRed, |
Constructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Equals
(
const TStaticArray< FVector2d, 4 >& InChromaticities, |
Check against color space chromaticities for equality, within specified error limits. | |
| bool | Equals
(
const FColorSpace& ColorSpace, |
Check against another color space for equality, within specified error limits. | |
| const FVector2d & | Gets the color space's blue chromaticity coordinates. | ||
| void | GetChromaticities
(
UE::Math::TVector2< T >& OutRed, |
Getter for the color space chromaticity coordinates. | |
| const FVector2d & | Gets the color space's green chromaticity coordinates. | ||
| float | GetLuminance
(
const FLinearColor& Color |
Calculate the color's luminance value in the current space. | |
| FLinearColor | Get the luminance factors in the current space. | ||
| const FVector2d & | Gets the color space's red chromaticity coordinates. | ||
| const FMatrix44d & | GetRgbToXYZ () |
Gets the RGB-to-XYZ conversion matrix. | |
| const FVector2d & | Gets the color space's white point chromaticity coordinates. | ||
| const FColorSpace & | GetWorking () |
Get the global engine working color space (as a singleton). | |
| const FMatrix44d & | GetXYZToRgb () |
Gets the XYZ-to-RGB conversion matrix. | |
| bool | IsSRGB () |
Convenience function to verify if the color space matches the engine's default sRGB chromaticities. | |
| TStaticArray< FVector2d, 4 > | MakeChromaticities
(
UE::Color::EColorSpace ColorSpaceType |
Make the chromaticities of the color space type. | |
| FLinearColor | MakeFromColorTemperature
(
float Temp |
Converts temperature in Kelvins of a black body radiator to an RGB color in the current space. | |
| bool | |||
| void | SetWorking
(
FColorSpace ColorSpace |
Set the global engine working color space (as a singleton). |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FColorSpace& ColorSpace |
Check against another color space for inequality. | |
| FColorSpace & | operator=
(
FColorSpace&& |
||
| FColorSpace & | operator=
(
const FColorSpace& |
||
| bool | operator==
(
const FColorSpace& ColorSpace |
Check against another color space for equality. |