Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/ObjectThumbnail.h |
Include | #include "Misc/ObjectThumbnail.h" |
Syntax
class FObjectThumbnail
Remarks
Thumbnail image data for an object.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Default constructor. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
TArray< uint8 > & | Access the compressed image data. | |
![]() ![]() |
const TArray< uint8 > & | Access the image data in place (does not decompress) const version. | |
![]() |
TArray< uint8 > & | Access the image data in place (does not decompress). | |
![]() ![]() |
FThumbnailCompressionInterface * | Returns thumbnail compressor that would be used on current uncompressed image data. | |
![]() |
void | Compress image data. | |
![]() ![]() |
void | CountBytes
(
FArchive& Ar |
Calculates the memory usage of this FObjectThumbnail. |
![]() ![]() |
void | CountImageBytes_Compressed
(
FArchive& Ar |
Calculates the amount of memory used by the compressed bytes array. |
![]() ![]() |
void | CountImageBytes_Uncompressed
(
FArchive& Ar |
Calculates the amount of memory used by the uncompressed bytes array. |
![]() |
void | Decompress image data. | |
![]() ![]() |
int32 | ||
![]() ![]() |
FThumbnailCompressionInterface * | Returns thumbnail compressor used on current compressed image data. | |
![]() ![]() |
int32 | Returns the height of the thumbnail. | |
![]() ![]() |
int32 | Returns the width of the thumbnail. | |
![]() ![]() |
const TArray< uint8 > & | Returns uncompressed image data, decompressing it on demand if needed. | |
![]() ![]() |
bool | Returns true if the thumbnail was saved AFTER custom-thumbnails for shared thumbnail asset types was supported. | |
![]() ![]() |
bool | IsDirty () |
Returns true if the thumbnail is dirty and needs to be regenerated at some point. |
![]() ![]() |
bool | IsEmpty () |
Returns true if this is an empty thumbnail. |
![]() ![]() |
bool | Returns true if the thumbnail was loaded from disk and not dynamically generated. | |
![]() |
void | MarkAsDirty () |
Marks the thumbnail as dirty. |
![]() |
void | Serializers | |
![]() |
void | Serialize
(
FStructuredArchive::FSlot Slot |
Serializers |
![]() |
void | For newly generated custom thumbnails, mark it as valid in the future. | |
![]() |
void | SetImageSize
(
int32 InWidth, |
Sets the image dimensions. |
![]() ![]() |
void | SetThumbnailCompressors
(
FThumbnailCompressionInterface* InPNGThumbnailCompressor, |
Static: Sets the thumbnail compressor to use when loading/saving packages. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | operator!=
(
const FObjectThumbnail& Other |
|
![]() ![]() |
bool | operator==
(
const FObjectThumbnail& Other |
Comparison operator |
Constants
Name | Description |
---|---|
JPEGThumbnailCompressor | |
PNGThumbnailCompressor | Static: Thumbnail compressor.Static: Thumbnail compressor |