FSlateApplication::TakeScreenshot

Takes a screenshot of the widget writing the results into the color buffer provided, this version allows you to provide an inner area to screenshot.

Windows
MacOS
Linux

References

Module

Slate

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

Syntax

bool TakeScreenshot
(
    const TSharedRef< SWidget > & Widget,
    const FIntRect & InnerWidgetArea,
    TArray< FColor > & OutColorData,
    FIntVector & OutSize
)

Remarks

Takes a screenshot of the widget writing the results into the color buffer provided, this version allows you to provide an inner area to screenshot.

that the format is BGRA. The size of the resulting image is also output.

Returns

true if taking the screenshot was successful.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss