Skip to content

Instantly share code, notes, and snippets.

View arashiscoding's full-sized avatar

Arash Dehghanian arashiscoding

View GitHub Profile
@alanedwardes
alanedwardes / EstScreenshotTaker.cpp
Created December 20, 2017 00:11
Unreal Engine 4 class to take and compress screenshots to a JPEG image, then raise an event with the compressed data.
// Estranged is a trade mark of Alan Edwardes.
#include "EstScreenshotTaker.h"
#include "IImageWrapper.h"
#include "IImageWrapperModule.h"
void UEstScreenshotTaker::RequestScreenshot()
{
if (GEngine == nullptr || GEngine->GameViewport == nullptr || bIsScreenshotRequested)
{