Navigation
Unreal Engine C++ API Reference > Runtime > Engine > FRenderTarget
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/UnrealClient.h |
Include | #include "UnrealClient.h" |
Source | /Engine/Source/Runtime/Engine/Private/UnrealClient.cpp |
bool ReadPixels
&40;
TArray< FColor > & OutImageData,
FReadSurfaceDataFlags InFlags,
FIntRect InRect
&41;
Remarks
Reads the viewport's displayed pixels into a preallocated color buffer. Reads the viewport's displayed pixels into a preallocated color buffer. True if the read succeeded.
Parameters
Name | Description |
---|---|
OutImageData | RGBA8 values will be stored in this buffer |
InRect | source rect of the image to capture |
OutImageData | RGBA8 values will be stored in this buffer |
TopLeftX | Top left X pixel to capture |
TopLeftY | Top left Y pixel to capture |
Width | Width of image in pixels to capture |
Height | Height of image in pixels to capture |