FImageUtils::ImageResize

Resizes the given image using a simple average filter and stores it in the destination array.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/ImageUtils.h

Include

#include "ImageUtils.h"

Source

/Engine/Source/Runtime/Engine/Private/ImageUtils.cpp

Syntax

static void ImageResize
(
    int32 SrcWidth,
    int32 SrcHeight,
    const TArrayView< const FColor > & SrcData,
    int32 DstWidth,
    int32 DstHeight,
    const TArrayView< FColor > & DstData,
    bool bLinearSpace
)

Remarks

Resizes the given image using a simple average filter and stores it in the destination array. This version constrains aspect ratio. Accepts TArrayViews but requires that DstData be pre-sized appropriately

Parameters

Parameter

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. (must already be sized to DstWidth*DstHeight)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss