Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UTexture
Description
Downsize the 2D Image with the build settings for the texture until all dimensions are <= TargetSize. This downsizes using the mip generation system and so will only cut sizes in half. Return false if a parameter is invalid. Returns true if the output is <= TargetSize, whether or not downsizing occurred.
| Name | DownsizeImageUsingTextureSettings |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Texture.h |
| Include Path | #include "Engine/Texture.h" |
| Source | /Engine/Source/Runtime/Engine/Private/TextureDerivedData.cpp |
bool DownsizeImageUsingTextureSettings
(
const ITargetPlatform * TargetPlatform,
FImage & InOutImage,
int32 TargetSize,
int32 LayerIndex,
bool & OutMadeChanges
) const