/Engine/Source/Runtime/ImageWrapper/Public/IImageWrapper.h
you must notSetRaw()with a format unless it passesCanSetRawFormat()deprecated : avoid direct calls toSetRaw(), use ImageWrapperModule CompressImage instead do not use InBytesPerRow, it is ignored SetRaw does not take gamma information assumes U8 = SRGB and all else = Linear
true if data was the expected format.
bool SetRaw ( const void * InRawData, int64 InRawSize, const int32 InWidth, const int32 InHeight, const ERGBFormat InFormat, const int32 InBitDepth, const int32 InBytesPerRow )