![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ObjectThumbnail.h>
Static Public Member Functions | |
| static void | SetThumbnailCompressors (FThumbnailCompressionInterface *InPNGThumbnailCompressor, FThumbnailCompressionInterface *InJPEGThumbnailCompressor) |
Friends | |
| FArchive & | operator<< (FArchive &Ar, FObjectThumbnail &Thumb) |
| FArchive & | operator<< (FArchive &Ar, const FObjectThumbnail &Thumb) |
Thumbnail image data for an object.
| FObjectThumbnail::FObjectThumbnail | ( | ) |
Default constructor.
Access the compressed image data.
Access the image data in place (does not decompress).
Access the image data in place (does not decompress) const version.
| FThumbnailCompressionInterface * FObjectThumbnail::ChooseNewCompressor | ( | ) | const |
Returns thumbnail compressor that would be used on current uncompressed image data.
| void FObjectThumbnail::CompressImageData | ( | ) |
Compress image data.
Calculates the memory usage of this FObjectThumbnail.
| Ar | the FArchiveCountMem (or similar) archive that will store the results of the memory usage calculation. |
Calculates the amount of memory used by the compressed bytes array.
| Ar | the FArchiveCountMem (or similar) archive that will store the results of the memory usage calculation. |
Calculates the amount of memory used by the uncompressed bytes array.
| Ar | the FArchiveCountMem (or similar) archive that will store the results of the memory usage calculation. |
| void FObjectThumbnail::DecompressImageData | ( | ) |
Decompress image data.
|
inline |
| FThumbnailCompressionInterface * FObjectThumbnail::GetCompressor | ( | ) | const |
Returns thumbnail compressor used on current compressed image data.
|
inline |
Returns uncompressed image data as an FImageView, decompressing it on demand if needed.
Note the FImageView does not have a copy of the data, it points at the Thumbnail UncompressedImageData. If the UncompressedImageData is freed or changed, the FImageView will be affected.
Not actually a const function, may change the "ImageData" member.
|
inline |
Returns the height of the thumbnail.
|
inline |
Returns the width of the thumbnail.
Returns uncompressed image data, decompressing it on demand if needed.
Prefer GetImage and use FImage/FImageView for image data.
Not actually a const function, may change the "ImageData" member.
|
inline |
Returns if the thumbnail actually has any valid image data or not. Note that it is possible for IsEmpty to return true and this method to return false if there was a problem during serialization or the thumbnail data has otherwise become corrupted.
Returns true if the thumbnail was saved AFTER custom-thumbnails for shared thumbnail asset types was supported.
|
inline |
Returns true if the thumbnail is dirty and needs to be regenerated at some point.
|
inline |
Returns true if this is an empty thumbnail.
Returns true if the thumbnail was loaded from disk and not dynamically generated.
|
inline |
Marks the thumbnail as dirty.
|
inline |
|
inline |
Comparison operator
| void FObjectThumbnail::Serialize | ( | FStructuredArchive::FSlot | Slot | ) |
For newly generated custom thumbnails, mark it as valid in the future.
|
inline |
Copy Image into Thumbnail uncompressed image data. Existing compressed data, if any, is freed.
Thumbnails are always BGRA8-sRGB. The passed in Image can be other formats and conversion will be done if needed.
Move Image data into Thumbnail (convert to BGRA8-SRGB if necessary)
Sets the image dimensions.
|
inlinestatic |
Static: Sets the thumbnail compressor to use when loading/saving packages. The caller is responsible for the object's lifespan.
| InThumbnailCompressor | A class derived from FThumbnailCompressionInterface. |
|
friend |
|
friend |
I/O operator