FThumbnailCompressionInterface::CompressImage

Compresses an image

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss