Navigation
API > API/Runtime > API/Runtime/ImageWrapper > API/Runtime/ImageWrapper/IImageWrapper
Description
Sets the raw image data. Prepares to call GetCompressed() next.
you must not SetRaw() with a format unless it passes CanSetRawFormat() deprecated : avoid direct calls to SetRaw(), use ImageWrapperModule CompressImage instead do not use InBytesPerRow, it is ignored SetRaw does not take gamma information assumes U8 = SRGB and all else = Linear
Derived Overrides
| Name | SetRaw |
| Type | function |
| Header File | /Engine/Source/Runtime/ImageWrapper/Public/IImageWrapper.h |
| Include Path | #include "IImageWrapper.h" |
bool SetRaw
(
const void * InRawData,
int64 InRawSize,
const int32 InWidth,
const int32 InHeight,
const ERGBFormat InFormat,
const int32 InBitDepth,
const int32 InBytesPerRow
)
true if data was the expected format.
Parameters
| Name | Remarks |
|---|---|
| InRawData | The memory address of the start of the raw data. |
| InRawSize | The size of the compressed data parsed. |
| InWidth | The width of the image data. |
| InHeight | the height of the image data. |
| InFormat | the format the raw data is in, normally RGBA. |
| InBitDepth | the bit-depth per channel, normally 8. |
| InBytesPerRow | the number of bytes between rows, 0 = tightly packed rows with no padding. |