FThumbnailCompressionInterface::CompressImage

Compresses an image

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/ObjectThumbnail.h

Include

#include "Misc/ObjectThumbnail.h"

Syntax

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

Remarks

Compresses an image

Returns

true if the image was compressed successfully, otherwise false if an error occurred

Parameters

Parameter

Description

InUncompressedData

The uncompressed image data

InWidth

Width of the image

InHeight

Height of the image

OutCompressedData

[Out] Compressed image data