Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FImageUtils > API/Runtime/Engine/FImageUtils/ImageResize
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 ImageResize
&40;
int32 SrcWidth,
int32 SrcHeight,
const TArray< FColor > & SrcData,
int32 DstWidth,
int32 DstHeight,
TArray< FColor > & DstData,
bool bLinearSpace,
bool bForceOpaqueOutput
&41;
Remarks
Resizes the given image using a simple average filter and stores it in the destination array. This version constrains aspect ratio.
Resizes the given image using a simple average filter and stores it in the destination array.
Parameters
| Name | Description |
|---|---|
| SrcWidth | Source image width. |
| SrcHeight | Source image height. |
| SrcData | Source image data. |
| DstWidth | Destination image width. |
| DstHeight | Destination image height. |
| DstData | Destination image data. |
| bLinearSpace | Output in linear space instead of sRGB. |
| bForceOpaqueOutput | Always output 255 for the alpha channel. |
| SrcWidth | Source image width. |
| SrcHeight | Source image height. |
| SrcData | Source image data. |
| DstWidth | Destination image width. |
| DstHeight | Destination image height. |
| DstData | Destination image data. |
| bLinearSpace | If true, convert colors into linear space before interpolating (slower but more accurate) |