Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FImageUtils
Description
Creates a 2D texture from an FImage
NOTE: this makes a Transient texture with the Image in the PlatformData this is different than making a Texture via TextureSource.Init(Image)
| Name | CreateTexture2DFromImage |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/ImageUtils.h |
| Include Path | #include "ImageUtils.h" |
| Source | /Engine/Source/Runtime/Engine/Private/ImageUtils.cpp |
static UTexture2D * CreateTexture2DFromImage
(
const FImageView & Image
)
Returns a pointer to the constructed 2D texture object.
Parameters
| Name | Remarks |
|---|---|
| Image | Image that will be copied into a Texture |