Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Framework/Application/SlateApplication.h |
Include |
#include "Framework/Application/SlateApplication.h" |
Source |
/Engine/Source/Runtime/Slate/Private/Framework/Application/SlateApplication.cpp |
bool TakeScreenshot
(
const TSharedRef< SWidget > & Widget,
TArray< FColor > & OutColorData,
FIntVector & OutSize
)
Takes a screenshot of the widget writing the results into the color buffer provided.
that the format is BGRA. the size of the resulting image is also output.
true if taking the screenshot was successful.