Navigation
API > API/Runtime > API/Runtime/Engine
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
| Name | FImageUtils |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/ImageUtils.h |
| Include Path | #include "ImageUtils.h" |
Syntax
class FImageUtils
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool CompressImage
(
TArray64< uint8 >& OutData, |
"Compress" an image to a file format. | ImageUtils.h | |
| ImageUtils.h | |||
static UTextureCube * CreateCheckerboardCubeTexture
(
FColor ColorOne, |
Creates a new UTextureCube with a checkerboard pattern. | ImageUtils.h | |
static UTexture2D * CreateCheckerboardTexture
(
FColor ColorOne, |
Creates a new UTexture2D with a checkerboard pattern. | ImageUtils.h | |
static UTexture2DArray * CreateCheckerboardTexture2DArray
(
FColor ColorOne, |
Creates a new UTexture2DArray with a checkerboard pattern. | ImageUtils.h | |
static UTextureCubeArray * CreateCheckerboardTextureCubeArray
(
FColor ColorOne, |
Creates a new UTextureCubeArray with a checkerboard pattern. | ImageUtils.h | |
static UVolumeTexture * CreateCheckerboardVolumeTexture
(
FColor ColorOne, |
Creates a new UVolumeTexture with a checkerboard pattern. | ImageUtils.h | |
static UTexture * CreateTexture
(
ETextureClass TextureClass, |
Creates a texture of any type from an Image This is the modern preferred way to create a texture. | ImageUtils.h | |
static UTexture2D * CreateTexture2D
(
int32 SrcWidth, |
Creates a 2D texture from a array of raw color data. | ImageUtils.h | |
static UTexture2D * CreateTexture2DFromImage
(
const FImageView& Image |
Creates a 2D texture from an FImage | ImageUtils.h | |
| Crops, and scales an image from a raw image array. | ImageUtils.h | ||
static bool DecompressImage
(
const void* InCompressedData, |
"Decompress" an image to a file format. | ImageUtils.h | |
static bool ExportRenderTarget2DAsEXR
(
UTextureRenderTarget2D* TexRT, |
Exports a UTextureRenderTarget2D as a EXR image on the disk. | ImageUtils.h | |
static bool ExportRenderTarget2DAsHDR
(
UTextureRenderTarget2D* TexRT, |
Exports a UTextureRenderTarget2D as an HDR image on the disk. | ImageUtils.h | |
static bool ExportRenderTarget2DAsPNG
(
UTextureRenderTarget2D* TexRT, |
Exports a UTextureRenderTarget2D as a PNG image on the disk. | ImageUtils.h | |
static bool ExportRenderTargetCubeAsHDR
(
UTextureRenderTargetCube* TexRT, |
Exports a UTextureRenderTargetCube as an HDR image on the disk. | ImageUtils.h | |
static bool ExportRenderTargetToDDS
(
TArray64< uint8 >& OutData, |
Export Texture RenderTarget (2D,Array,Cube,CubeArray,Volume) to DDS reads from texture rendertarget RHI texture | ImageUtils.h | |
static bool ExportTexture2DAsHDR
(
UTexture2D* TexRT, |
Exports a UTexture2D as an HDR image on the disk. | ImageUtils.h | |
static bool ExportTextureCubeAsHDR
(
UTextureCube* TexRT, |
Exports a UTextureCube as an HDR image on the disk. | ImageUtils.h | |
static bool ExportTextureSourceToDDS
(
TArray64< uint8 >& OutData, |
Export Texture (2D,Array,Cube,CubeArray,Volume) to DDS reads from texture source, not platform data | ImageUtils.h | |
static bool GetRawData
(
UTextureRenderTarget2D* TexRT, |
ImageUtils.h | ||
static bool GetRenderTargetImage
(
UTextureRenderTarget* TexRT, |
ImageUtils.h | ||
static bool GetRenderTargetImage
(
UTextureRenderTarget* TexRT, |
Get the contents of a RenderTarget into an Image | ImageUtils.h | |
static bool GetTexture2DSourceImage
(
UTexture2D* Texture, |
If Texture source is available, get it as an FImage | ImageUtils.h | |
static void ImageResize
(
int32 SrcWidth, |
Resizes the given image using FImageCore::ResizeImage. | ImageUtils.h | |
static void ImageResize
(
int32 SrcWidth, |
Resizes the given image using FImageCore::ResizeImage. | ImageUtils.h | |
static void ImageResize
(
int32 SrcWidth, |
Resizes the given image using FImageCore::ResizeImage. | ImageUtils.h | |
static void ImageResize
(
int32 SrcWidth, |
Resizes the given image using FImageCore::ResizeImage. | ImageUtils.h | |
static UTexture2D * ImportBufferAsTexture2D
(
const TArray< uint8 >& Buffer |
ImageUtils.h | ||
static UTexture2D * ImportBufferAsTexture2D
(
TArrayView64< const uint8 > Buffer |
Imports a texture a buffer and creates Texture2D from it | ImageUtils.h | |
static UTexture2D * ImportFileAsTexture2D
(
const FString& Filename |
Imports a texture file from disk and creates Texture2D from it | ImageUtils.h | |
static bool LoadImage
(
const TCHAR* Filename, |
Load an image of any type supported by the ImageWrapper module | ImageUtils.h | |
static void PNGCompressImageArray
(
int32 ImageWidth, |
Compress image to PNG format uint8 array. deprecated, use CompressImage instead | ImageUtils.h | |
static bool SaveImageAutoFormat
(
const TCHAR* Filename, |
Save an image. | ImageUtils.h | |
static bool SaveImageByExtension
(
const TCHAR* Filename, |
Save an image. | ImageUtils.h | |
| Compress image to thumbnail enabled format (png or jpg) uint8 array. | ImageUtils.h |