![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <BmpImageWrapper.h>
Inheritance diagram for FBmpImageWrapper:Additional Inherited Members | |
Public Types inherited from IImageWrapper | |
| using | TStringMap = TMap< FString, FString > |
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) |
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 |
BMP implementation of the helper class
Default Constructor.
BMP image wrapper class. This code was adapted from UTextureFactory::ImportTexture, but has not been throughly tested.
|
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.
| bool FBmpImageWrapper::LoadBMPHeader | ( | ) |
Load the header information, returns true if successful.
Load the sub-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.
| bool FBmpImageWrapper::UncompressBMPData | ( | const ERGBFormat | InFormat, |
| const int32 | InBitDepth | ||
| ) |
Helper function used to uncompress BMP data from a buffer