Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FRenderTarget
Description
Reads the render target's displayed pixels into the given color buffer. The default value for InFlags specifies RCM_UNorm which will cause values to be scaled into [0,1] ; use RCM_MinMax to retrieve values without change.
This will convert whatever the pixel format is to FLinearColor (if supported). Prefer using FImageUtils::GetRenderTargetImage rather than calling this directly.
Derived Overrides
| Name | ReadLinearColorPixels |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/UnrealClient.h |
| Include Path | #include "UnrealClient.h" |
| Source | /Engine/Source/Runtime/Engine/Private/UnrealClient.cpp |
virtual bool ReadLinearColorPixels
(
TArray < FLinearColor > & OutImageData,
FReadSurfaceDataFlags InFlags,
FIntRect InSrcRect
)
True if the read succeeded.
Parameters
| Name | Remarks |
|---|---|
| OutImageData | Linear color array to store the value |
| InFlags | Additional information about how to to read the surface data (cube face, slice index, etc.) |
| InSrcRect | InSrcRect not specified means the whole rect |