Navigation
API > API/Runtime > API/Runtime/ImageWrapper > API/Runtime/ImageWrapper/IImageWrapperModule
Description
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.
| Name | DetectImageFormat |
| Type | function |
| Header File | /Engine/Source/Runtime/ImageWrapper/Public/IImageWrapperModule.h |
| Include Path | #include "IImageWrapperModule.h" |
EImageFormat DetectImageFormat
(
const void * InCompressedData,
int64 InCompressedSize
)
the detected format or EImageFormat::Invalid if the method could not detect the image format.
Parameters
| Name | Remarks |
|---|---|
| InCompressedData | The raw image header. |
| InCompressedSize | The size of InCompressedData. |