IImageWrapperModule::DetectImageFormat

Detect image format by looking at the first few bytes of the compressed image data.

Windows
MacOS
Linux

References

Module

ImageWrapper

Header

/Engine/Source/Runtime/ImageWrapper/Public/IImageWrapperModule.h

Include

#include "IImageWrapperModule.h"

Syntax

EImageFormat DetectImageFormat
(
    const void * InCompressedData,
    int64 InCompressedSize
)

Remarks

Detect image format by looking at the first few bytes of the compressed image data. You can call this method as soon as you have 8-16 bytes of compressed file content available.

Returns

the detected format or EImageFormat::Invalid if the method could not detect the image format.

Parameters

Parameter

Description

InCompressedData

The raw image header.

InCompressedSize

The size of InCompressedData.

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