FImage::ResizeTo

Copies and resizes the image to a destination image with the specified size and format.

Windows
MacOS
Linux

References

Module

ImageCore

Header

/Engine/Source/Runtime/ImageCore/Public/ImageCore.h

Include

#include "ImageCore.h"

Source

/Engine/Source/Runtime/ImageCore/Private/ImageCore.cpp

Syntax

void ResizeTo
(
    FImage & DestImage,
    int32 DestSizeX,
    int32 DestSizeY,
    ERawImageFormat::Type DestFormat,
    EGammaSpace DestGammaSpace
) const

Remarks

Copies and resizes the image to a destination image with the specified size and format. Resize is done using bilinear filtering

Parameters

Parameter

Description

DestImage

The destination image.

DestSizeX

Width of the resized image

DestSizeY

Height of the resized image

DestFormat

The destination image format.

DestSRGB

Whether the destination image is in SRGB format.

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