![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <TgaImageWrapper.h>
Inheritance diagram for FTgaImageWrapper:Static Public Member Functions | |
| static bool | IsTGAHeader (const void *CompressedData, int64 CompressedDataLength) |
Static Public Member Functions inherited from IImageWrapper | |
| static IMAGEWRAPPER_API void | ConvertRawImageFormat (ERawImageFormat::Type RawFormat, ERGBFormat &OutFormat, int &OutBitDepth) |
| static IMAGEWRAPPER_API ERawImageFormat::Type | ConvertRGBFormat (ERGBFormat RGBFormat, int BitDepth, bool *bIsExactMatch=nullptr) |
| static IMAGEWRAPPER_API int64 | GetRGBFormatBytesPerPel (ERGBFormat RGBFormat, int BitDepth) |
Additional Inherited Members | |
Public Types inherited from IImageWrapper | |
| using | TStringMap = TMap< FString, FString > |
Protected Member Functions inherited from FImageWrapperBase | |
| int64 | GetBytesPerPel () const |
| int64 | GetBytesPerRow () const |
| bool | GetImageViewOfSetRawForCompress (FImageView &OutImage) const |
Protected Attributes inherited from FImageWrapperBase | |
| TArray64< uint8 > | RawData |
| TArray64< uint8 > | CompressedData |
| ERGBFormat | Format |
| int | BitDepth |
| int64 | Width |
| int64 | Height |
| FString | LastError |
Protected Attributes inherited from IImageWrapper | |
| const TCHAR * | DebugImageName = nullptr |
TGA implementation of the helper class
|
overridevirtual |
CanSetRawFormat returns true if SetRaw will accept this format
Implements IImageWrapper.
Compresses the data.
| Quality | The compression quality. |
returns void. call SetError() in your implementation if you fail.
Implements FImageWrapperBase.
|
overridevirtual |
returns InFormat if supported, else maps to something supported the returned format will pass CanSetRawFormat()
Implements IImageWrapper.
|
static |
| bool FTgaImageWrapper::LoadTGAHeader | ( | ) |
Load the header information, returns true if successful.
|
overridevirtual |
Sets the compressed data. Can then call GetRaw().
| InCompressedData | The memory address of the start of the compressed data. |
| InCompressedSize | The size of the compressed data parsed. |
after SetCompressed, image info queries like GetWidth and GetBitDepth are allowed call GetRaw to get the decoded bits decompression is not done until GetRaw
Reimplemented from FImageWrapperBase.
|
overridevirtual |
Function to uncompress our data
| InFormat | How we want to manipulate the RGB data |
| InBitDepth | The bit depth per-channel of the image. |
returns void. call SetError() in your implementation if you fail.
Implements FImageWrapperBase.