|
| static ENGINE_API bool | LoadImage (const TCHAR *Filename, FImage &OutImage) |
| |
| static ENGINE_API bool | SaveImageByExtension (const TCHAR *Filename, const FImageView &InImage, int32 Quality=0) |
| |
| static ENGINE_API bool | SaveImageAutoFormat (const TCHAR *Filename, const FImageView &InImage, int32 Quality=0) |
| |
| static ENGINE_API bool | CompressImage (TArray64< uint8 > &OutData, const TCHAR *ToFormatExtension, const FImageView &InImage, int32 Quality=0) |
| |
| static ENGINE_API bool | DecompressImage (const void *InCompressedData, int64 InCompressedSize, FImage &OutImage) |
| |
| static ENGINE_API bool | ExportTextureSourceToDDS (TArray64< uint8 > &OutData, UTexture *Texture, int BlockIndex=0, int LayerIndex=0) |
| |
| static ENGINE_API bool | ExportRenderTargetToDDS (TArray64< uint8 > &OutData, UTextureRenderTarget *TexRT) |
| |
| static ENGINE_API bool | GetTexture2DSourceImage (UTexture2D *Texture, FImage &OutImage) |
| |
| static ENGINE_API void | ImageResize (int32 SrcWidth, int32 SrcHeight, const TArray< FColor > &SrcData, int32 DstWidth, int32 DstHeight, TArray< FColor > &DstData, bool bResizeSRGBinLinearSpace, bool bForceOpaqueOutput=true) |
| |
| static ENGINE_API void | ImageResize (int32 SrcWidth, int32 SrcHeight, const TArrayView< const FColor > &SrcData, int32 DstWidth, int32 DstHeight, const TArrayView< FColor > &DstData, bool bResizeSRGBinLinearSpace, bool bForceOpaqueOutput=true) |
| |
| static ENGINE_API void | ImageResize (int32 SrcWidth, int32 SrcHeight, const TArray64< FLinearColor > &SrcData, int32 DstWidth, int32 DstHeight, TArray64< FLinearColor > &DstData) |
| |
| static ENGINE_API void | ImageResize (int32 SrcWidth, int32 SrcHeight, const TArrayView64< const FLinearColor > &SrcData, int32 DstWidth, int32 DstHeight, const TArrayView64< FLinearColor > &DstData) |
| |
| static ENGINE_API UTexture2D * | CreateTexture2D (int32 SrcWidth, int32 SrcHeight, const TArray< FColor > &SrcData, UObject *Outer, const FString &Name, const EObjectFlags &Flags, const FCreateTexture2DParameters &InParams) |
| |
| static ENGINE_API UTexture * | CreateTexture (ETextureClass TextureClass, const FImageView &Image, UObject *Outer, const FString &Name, EObjectFlags Flags=RF_NoFlags, bool DoPostEditChange=true) |
| |
| static ENGINE_API UTexture2D * | CreateTexture2DFromImage (const FImageView &Image) |
| |
| static ENGINE_API void | CropAndScaleImage (int32 SrcWidth, int32 SrcHeight, int32 DesiredWidth, int32 DesiredHeight, const TArray< FColor > &SrcData, TArray< FColor > &DstData) |
| |
| static ENGINE_API void | ThumbnailCompressImageArray (int32 ImageWidth, int32 ImageHeight, const TArray< FColor > &SrcData, TArray< uint8 > &DstData) |
| |
| static void | CompressImageArray (int32 ImageWidth, int32 ImageHeight, const TArray< FColor > &SrcData, TArray< uint8 > &DstData) |
| |
| static ENGINE_API void | PNGCompressImageArray (int32 ImageWidth, int32 ImageHeight, const TArrayView64< const FColor > &SrcData, TArray64< uint8 > &DstData) |
| |
| static ENGINE_API UTexture2D * | CreateCheckerboardTexture (FColor ColorOne=FColor(64, 64, 64), FColor ColorTwo=FColor(128, 128, 128), int32 CheckerSize=32) |
| |
| static ENGINE_API UTexture2DArray * | CreateCheckerboardTexture2DArray (FColor ColorOne=FColor(64, 64, 64), FColor ColorTwo=FColor(128, 128, 128), int32 CheckerSize=32, int32 ArraySize=1) |
| |
| static ENGINE_API UTextureCube * | CreateCheckerboardCubeTexture (FColor ColorOne=FColor(64, 64, 64), FColor ColorTwo=FColor(128, 128, 128), int32 CheckerSize=32) |
| |
| static ENGINE_API UTextureCubeArray * | CreateCheckerboardTextureCubeArray (FColor ColorOne=FColor(64, 64, 64), FColor ColorTwo=FColor(128, 128, 128), int32 CheckerSize=32, int32 ArraySize=1) |
| |
| static ENGINE_API UVolumeTexture * | CreateCheckerboardVolumeTexture (FColor ColorOne=FColor(64, 64, 64), FColor ColorTwo=FColor(128, 128, 128), int32 CheckerSize=16) |
| |
| static ENGINE_API bool | ExportRenderTarget2DAsHDR (UTextureRenderTarget2D *TexRT, FArchive &Ar) |
| |
| static ENGINE_API bool | ExportRenderTarget2DAsEXR (UTextureRenderTarget2D *TexRT, FArchive &Ar) |
| |
| static ENGINE_API bool | ExportRenderTarget2DAsPNG (UTextureRenderTarget2D *TexRT, FArchive &Ar) |
| |
| static ENGINE_API bool | ExportTexture2DAsHDR (UTexture2D *TexRT, FArchive &Ar) |
| |
| static ENGINE_API UTexture2D * | ImportFileAsTexture2D (const FString &Filename) |
| |
| static ENGINE_API UTexture2D * | ImportBufferAsTexture2D (TArrayView64< const uint8 > Buffer) |
| |
| static ENGINE_API UTexture2D * | ImportBufferAsTexture2D (const TArray< uint8 > &Buffer) |
| |
| static ENGINE_API bool | ExportRenderTargetCubeAsHDR (UTextureRenderTargetCube *TexRT, FArchive &Ar) |
| |
| static ENGINE_API bool | ExportTextureCubeAsHDR (UTextureCube *TexRT, FArchive &Ar) |
| |
| static ENGINE_API bool | GetRawData (UTextureRenderTarget2D *TexRT, TArray64< uint8 > &RawData) |
| |
| static ENGINE_API bool | GetRenderTargetImage (UTextureRenderTarget *TexRT, FImage &OutImage) |
| |
| static ENGINE_API bool | GetRenderTargetImage (UTextureRenderTarget *TexRT, FImage &OutImage, const FIntRect &Rect) |
| |
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
Creates a texture of any type from an Image This is the modern preferred way to create a texture.
If you need to change the default settings, then use DoPostEditChange = false, and call PostEditChange() yourself after setting all properties. Typically you may want to set LODGroup and CompressionSettings.
this fills the TextureSource , and will then Build a Platform texture from that can be used WITH_EDITOR only
Creates a 2D texture from a array of raw color data.
- Parameters
-
| SrcWidth | Source image width. |
| SrcHeight | Source image height. |
| SrcData | Source image data. |
| Outer | Outer for the texture object. |
| Name | Name for the texture object. |
| Flags | Object flags for the texture object. |
| InParams | Params about how to set up the texture. |
- Returns
- Returns a pointer to the constructed 2D texture object.
this fills a TextureSource , and will then Build a Platform texture from that can be used WITH_EDITOR only contrast to CreateTexture2DFromImage
Prefer the more modern CreateTexture from FImage.
Creates a 2D texture from a array of raw color data.
- Parameters
-
| SrcWidth | Source image width. |
| SrcHeight | Source image height. |
| SrcData | Source image data. |
| Outer | Outer for the texture object. |
| Name | Name for the texture object. |
| Flags | Object flags for the texture object. |
| InParams | Params about how to set up the texture. |
- Returns
- Returns a pointer to the constructed 2D texture object.