Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FImageUtils
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void ImageResize
(
int32 SrcWidth, |
Resizes the given image using FImageCore::ResizeImage. | ImageUtils.h | |
static void ImageResize
(
int32 SrcWidth, |
Resizes the given image using FImageCore::ResizeImage. | ImageUtils.h | |
static void ImageResize
(
int32 SrcWidth, |
Resizes the given image using FImageCore::ResizeImage. | ImageUtils.h | |
static void ImageResize
(
int32 SrcWidth, |
Resizes the given image using FImageCore::ResizeImage. | ImageUtils.h |
ImageResize(int32, int32, const TArray64< FLinearColor > &, int32, int32, TArray64< FLinearColor > &)
Description
Resizes the given image using FImageCore::ResizeImage. Destination array will be emptied and resized.
prefer FImageCore::ResizeImage instead. prefer using FImage or FImageView not FColor arrays.
BEWARE: the FColor variant of this function fills with opaque alpha by default. The FLinearColor variant does not
| Name | ImageResize |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/ImageUtils.h |
| Include Path | #include "ImageUtils.h" |
| Source | /Engine/Source/Runtime/Engine/Private/ImageUtils.cpp |
static void ImageResize
(
int32 SrcWidth,
int32 SrcHeight,
const TArray64< FLinearColor > & SrcData,
int32 DstWidth,
int32 DstHeight,
TArray64< FLinearColor > & DstData
)
Parameters
| Name | Remarks |
|---|---|
| SrcWidth | Source image width. |
| SrcHeight | Source image height. |
| SrcData | Source image data. |
| DstWidth | Destination image width. |
| DstHeight | Destination image height. |
| DstData | Destination image data. (will be resized) |
ImageResize(int32, int32, const TArrayView64< const FLinearColor > &, int32, int32, const TArrayView64< FLinearColor > &)
Description
Resizes the given image using FImageCore::ResizeImage. Accepts TArrayViews but requires that DstData be pre-sized appropriately
prefer FImageCore::ResizeImage instead. prefer using FImage or FImageView not FColor arrays.
BEWARE: the FColor variant of this function fills with opaque alpha by default. The FLinearColor variant does not
| Name | ImageResize |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/ImageUtils.h |
| Include Path | #include "ImageUtils.h" |
| Source | /Engine/Source/Runtime/Engine/Private/ImageUtils.cpp |
static void ImageResize
(
int32 SrcWidth,
int32 SrcHeight,
const TArrayView64< const FLinearColor > & SrcData,
int32 DstWidth,
int32 DstHeight,
const TArrayView64< FLinearColor > & DstData
)
Parameters
| Name | Remarks |
|---|---|
| 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) |
ImageResize(int32, int32, const TArray< FColor > &, int32, int32, TArray< FColor > &, bool, bool)
Description
Resizes the given image using FImageCore::ResizeImage. Destination array will be emptied and resized.
prefer FImageCore::ResizeImage instead. prefer using FImage or FImageView not FColor arrays.
BEWARE: the FColor variant of this function fills with opaque alpha by default. The FLinearColor variant does not
| Name | ImageResize |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/ImageUtils.h |
| Include Path | #include "ImageUtils.h" |
| Source | /Engine/Source/Runtime/Engine/Private/ImageUtils.cpp |
static void ImageResize
(
int32 SrcWidth,
int32 SrcHeight,
const TArray < FColor > & SrcData,
int32 DstWidth,
int32 DstHeight,
TArray < FColor > & DstData,
bool bResizeSRGBinLinearSpace,
bool bForceOpaqueOutput
)
Parameters
| Name | Remarks |
|---|---|
| SrcWidth | Source image width. |
| SrcHeight | Source image height. |
| SrcData | Source image data. |
| DstWidth | Destination image width. |
| DstHeight | Destination image height. |
| DstData | Destination image data. (will be resized) |
| bResizeSRGBinLinearSpace | Convert sRGB to linear for gamma-correct resize. Should be true if the Src is SRGB diffuse color; should be false for masks and normal maps. |
| bForceOpaqueOutput | Always output 255 for the alpha channel. BEWARE defaults to true so alpha is killed by default. |
ImageResize(int32, int32, const TArrayView< const FColor > &, int32, int32, const TArrayView< FColor > &, bool, bool)
Description
Resizes the given image using FImageCore::ResizeImage. Accepts TArrayViews but requires that DstData be pre-sized appropriately
prefer FImageCore::ResizeImage instead. prefer using FImage or FImageView not FColor arrays.
BEWARE: the FColor variant of this function fills with opaque alpha by default. The FLinearColor variant does not
| Name | ImageResize |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/ImageUtils.h |
| Include Path | #include "ImageUtils.h" |
| Source | /Engine/Source/Runtime/Engine/Private/ImageUtils.cpp |
static void ImageResize
(
int32 SrcWidth,
int32 SrcHeight,
const TArrayView < const FColor > & SrcData,
int32 DstWidth,
int32 DstHeight,
const TArrayView < FColor > & DstData,
bool bResizeSRGBinLinearSpace,
bool bForceOpaqueOutput
)
Parameters
| Name | Remarks |
|---|---|
| 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) |
| bResizeSRGBinLinearSpace | Convert sRGB to linear for gamma-correct resize. Should be true if the Src is SRGB diffuse color; should be false for masks and normal maps. |
| bForceOpaqueOutput | Always output 255 for the alpha channel. BEWARE defaults to true so alpha is killed by default. |