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 void CropAndScaleImage
&40;
int32 SrcWidth,
int32 SrcHeight,
int32 DesiredWidth,
int32 DesiredHeight,
const TArray< FColor > & SrcData,
TArray< FColor > & DstData
&41;
Remarks
Crops, and scales an image from a raw image array.
Parameters
Name | Description |
---|---|
SrcWidth | Source image width. |
SrcHeight | Source image height. |
DesiredWidth | Desired Width. |
DesiredHeight | Desired Height. |
SrcData | Raw image array. |
DstData | compressed image array. |