Navigation
Unreal Engine C++ API Reference > Runtime > Engine > FImageUtils
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/ImageUtils.h |
Include | #include "ImageUtils.h" |
Source | /Engine/Source/Runtime/Engine/Private/ImageUtils.cpp |
static UTexture2D &42; CreateTexture2D
&40;
int32 SrcWidth,
int32 SrcHeight,
const TArray< FColor > & SrcData,
UObject &42; Outer,
const FString & Name,
const EObjectFlags & Flags,
const FCreateTexture2DParameters & InParams
&41;
Remarks
Creates a 2D texture from a array of raw color data. Returns a pointer to the constructed 2D texture object.
Parameters
Name | Description |
---|---|
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. |