FImageUtils::CropAndScaleImage

Crops, and scales an image from a raw image 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 CropAndScaleImage
(
    int32 SrcWidth,
    int32 SrcHeight,
    int32 DesiredWidth,
    int32 DesiredHeight,
    const TArray< FColor > & SrcData,
    TArray< FColor > & DstData
)

Remarks

Crops, and scales an image from a raw image array.

Parameters

Parameter

Description

SrcWidth

Source image width.

SrcHeight

Source image height.

DesiredWidth

Desired Width.

DesiredHeight

Desired Height.

SrcData

Raw image array.

DstData

compressed image array.

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