# Generate texture2D from a TArray\<FColor\> buffer

**URL:** <https://forums.unrealengine.com/t/generate-texture2d-from-a-tarray-fcolor-buffer/567169>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 26, 2022, 4:05pm UTC](https://forums.unrealengine.com/t/generate-texture2d-from-a-tarray-fcolor-buffer/567169 "2022-05-26T16:05:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ACN\_Boscolo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ACN\_Boscolo](https://forums.unrealengine.com/u/ACN_Boscolo)\
**Post date:** [May 26, 2022, 4:05pm UTC](https://forums.unrealengine.com/t/generate-texture2d-from-a-tarray-fcolor-buffer/567169/1 "2022-05-26T16:05:17Z")

</div>

Hi, I’m trying to generate a texture2D from the TArray buffer.  
I receive this buffer after the broadcast of the delegate OnScreenshotCaptured.  
How I can do this?
