Navigation
Unreal Engine C++ API Reference > Runtime > Engine
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/ImageUtils.h |
Include | #include "ImageUtils.h" |
Syntax
class FImageUtils
Remarks
Class of static image utility functions.
Provides load/save of FImage and conversion from Texture2D/RenderTarget to/from FImage
in Engine, cannot be used by standalone texture build workers
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | CompressImage
(
TArray64< uint8 >& OutData, |
"Compress" an image to a file format. |
![]() ![]() |
UTextureCube * | CreateCheckerboardCubeTexture
(
FColor ColorOne, |
Creates a new UTextureCube with a checkerboard pattern. |
![]() ![]() |
UTexture2D * | CreateCheckerboardTexture
(
FColor ColorOne, |
Creates a new UTexture2D with a checkerboard pattern. |
![]() ![]() |
UTexture2DArray * | CreateCheckerboardTexture2DArray
(
FColor ColorOne, |
Creates a new UTexture2DArray with a checkerboard pattern. |
![]() ![]() |
UTextureCubeArray * | CreateCheckerboardTextureCubeArray
(
FColor ColorOne, |
Creates a new UTextureCubeArray with a checkerboard pattern. |
![]() ![]() |
UVolumeTexture * | CreateCheckerboardVolumeTexture
(
FColor ColorOne, |
Creates a new UVolumeTexture with a checkerboard pattern. |
![]() ![]() |
UTexture2D * | CreateTexture2D
(
int32 SrcWidth, |
Creates a 2D texture from a array of raw color data. |
![]() ![]() |
UTexture2D * | CreateTexture2DFromImage
(
const FImageView& Image |
Creates a 2D texture from an FImage |
![]() ![]() |
void | CropAndScaleImage
(
int32 SrcWidth, |
Crops, and scales an image from a raw image array. |
![]() ![]() |
bool | DecompressImage
(
const void* InCompressedData, |
"Decompress" an image to a file format. |
![]() ![]() |
bool | ExportRenderTarget2DAsEXR
(
UTextureRenderTarget2D* TexRT, |
Exports a UTextureRenderTarget2D as a EXR image on the disk. |
![]() ![]() |
bool | ExportRenderTarget2DAsHDR
(
UTextureRenderTarget2D* TexRT, |
Exports a UTextureRenderTarget2D as an HDR image on the disk. |
![]() ![]() |
bool | ExportRenderTarget2DAsPNG
(
UTextureRenderTarget2D* TexRT, |
Exports a UTextureRenderTarget2D as a PNG image on the disk. |
![]() ![]() |
bool | ExportRenderTargetCubeAsHDR
(
UTextureRenderTargetCube* TexRT, |
Exports a UTextureRenderTargetCube as an HDR image on the disk. |
![]() ![]() |
bool | ExportTexture2DAsHDR
(
UTexture2D* TexRT, |
Exports a UTexture2D as an HDR image on the disk. |
![]() ![]() |
bool | ExportTextureCubeAsHDR
(
UTextureCube* TexRT, |
Exports a UTextureCube as an HDR image on the disk. |
![]() ![]() |
bool | ExportTextureSourceToDDS
(
TArray64< uint8 >& OutData, |
Export Texture (2D,Array,Cube,CubeArray,Volume) to DDS reads from texture source, not platform data |
![]() ![]() |
bool | GetRawData
(
UTextureRenderTarget2D* TexRT, |
Should be removed from public API. |
![]() ![]() |
bool | GetRenderTargetImage
(
UTextureRenderTarget2D* TexRT, |
Get the contents of a RenderTarget into an Image |
![]() ![]() |
bool | GetTexture2DSourceImage
(
UTexture2D* Texture, |
If Texture source is available, get it as an FImage |
![]() ![]() |
void | ImageResize
(
int32 SrcWidth, |
Resizes the given image using a simple average filter and stores it in the destination array. |
![]() ![]() |
void | ImageResize
(
int32 SrcWidth, |
Resizes the given image using a simple average filter and stores it in the destination array. |
![]() ![]() |
void | ImageResize
(
int32 SrcWidth, |
Resizes the given image using a simple average filter and stores it in the destination array. |
![]() ![]() |
void | ImageResize
(
int32 SrcWidth, |
Resizes the given image using a simple average filter and stores it in the destination array. |
![]() ![]() |
UTexture2D * | ImportBufferAsTexture2D
(
TArrayView64< const uint8 > Buffer |
Imports a texture a buffer and creates Texture2D from it |
![]() ![]() |
UTexture2D * | ImportBufferAsTexture2D
(
const TArray< uint8 >& Buffer |
Imports a texture a buffer and creates Texture2D from it |
![]() ![]() |
UTexture2D * | ImportFileAsTexture2D
(
const FString& Filename |
Imports a texture file from disk and creates Texture2D from it |
![]() ![]() |
bool | Load an image of any type supported by the ImageWrapper module | |
![]() ![]() |
void | PNGCompressImageArray
(
int32 ImageWidth, |
Compress image to PNG format uint8 array. deprecated, use CompressImage instead |
![]() ![]() |
bool | SaveImageAutoFormat
(
const TCHAR* Filename, |
Save an image. |
![]() ![]() |
bool | SaveImageByExtension
(
const TCHAR* Filename, |
Save an image. |
![]() ![]() |
void | ThumbnailCompressImageArray
(
int32 ImageWidth, |
Compress image to thumbnail enabled format (png or jpg) uint8 array. |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | CompressImageArray
(
int32 ImageWidth, |
Please use PNGCompressImageArray or ThumbnailCompressImageArray |