UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FPNGThumbnailCompressor Class Reference
+ Inheritance diagram for FPNGThumbnailCompressor:

Public Member Functions

virtual bool CompressImage (const TArray< uint8 > &InUncompressedData, const int32 InWidth, const int32 InHeight, TArray< uint8 > &OutCompressedData)
 
virtual bool DecompressImage (const TArray< uint8 > &InCompressedData, const int32 InWidth, const int32 InHeight, TArray< uint8 > &OutUncompressedData)
 
FName GetThumbnailCompressorName () const override
 
bool IsLosslessCompression () const override
 

Detailed Description

Compresses and decompresses thumbnails using the PNG format. This is used by the package loading and saving process.

Member Function Documentation

◆ CompressImage()

virtual bool FPNGThumbnailCompressor::CompressImage ( const TArray< uint8 > &  InUncompressedData,
const int32  InWidth,
const int32  InHeight,
TArray< uint8 > &  OutCompressedData 
)
inlinevirtual

Compresses an image

Parameters
InUncompressedDataThe uncompressed image data
InWidthWidth of the image
InHeightHeight of the image
OutCompressedData[Out] Compressed image data
Returns
true if the image was compressed successfully, otherwise false if an error occurred

Implements FThumbnailCompressionInterface.

◆ DecompressImage()

virtual bool FPNGThumbnailCompressor::DecompressImage ( const TArray< uint8 > &  InCompressedData,
const int32  InWidth,
const int32  InHeight,
TArray< uint8 > &  OutUncompressedData 
)
inlinevirtual

Decompresses an image

Parameters
InCompressedDataThe compressed image data
InWidthWidth of the image
InHeightHeight of the image
OutUncompressedData[Out] Uncompressed image data
Returns
true if the image was decompressed successfully, otherwise false if an error occurred

Implements FThumbnailCompressionInterface.

◆ GetThumbnailCompressorName()

FName FPNGThumbnailCompressor::GetThumbnailCompressorName ( ) const
inlineoverridevirtual

Get name of compressor

Returns
Name of thumbnail compressor

Implements FThumbnailCompressionInterface.

◆ IsLosslessCompression()

bool FPNGThumbnailCompressor::IsLosslessCompression ( ) const
inlineoverridevirtual

Is lossless compression

Returns
true if compression is lossless

Implements FThumbnailCompressionInterface.


The documentation for this class was generated from the following file: