IImageWrapper::GetRaw

Gets the raw data in a [TArray](API\Runtime\Core\Containers\TArray).

Windows
MacOS
Linux

References

Module

ImageWrapper

Header

/Engine/Source/Runtime/ImageWrapper/Public/IImageWrapper.h

Include

#include "IImageWrapper.h"

Syntax

bool GetRaw
(
    const ERGBFormat InFormat,
    int32 InBitDepth,
    TArray< uint8 > & OutRawData
)

Remarks

Gets the raw data in a TArray. Only use this if you're certain that the image is less than 2 GB in size. Prefer using the overload which takes a TArray64 in general.

Returns

true on success, false otherwise.

Parameters

Parameter

Description

InFormat

How we want to manipulate the RGB data.

InBitDepth

The output bit-depth per channel, normally 8.

OutRawData

Will contain the uncompressed raw data.

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