Navigation
API > API/Plugins > API/Plugins/MutableRuntime
This struct contains image operations that may need to allocate and free temporary images to work. It's purpose is to override the creation, release and clone functions depending on the context.
| Name | FImageOperator |
| Type | struct |
| Header File | /Engine/Plugins/Mutable/Source/MutableRuntime/Public/MuR/Image.h |
| Include Path | #include "MuR/Image.h" |
Syntax
struct FImageOperator
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FImageOperator
(
FImageCreateFunc Create, |
MuR/Image.h |
Structs
| Name | Remarks |
|---|---|
| FScratchImageMipmap | Support struct to keep preallocated data required for some mipmap operations. |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FImageCloneFunc | TFunction< TSharedPtr< FImage >(const FImage *)> | MuR/Image.h | |
| FImageCreateFunc | TFunction< TSharedPtr< FImage >(int32, int32, int32, EImageFormat, EInitializationType)> | Common callback used for functions that can create temporary images. | MuR/Image.h |
| FImagePixelFormatFunc | TFunction< void(bool &, int32, FImage *, const FImage *, int32)> | Interface to override the internal mutable image pixel format conversion functions. | MuR/Image.h |
| FImageReleaseFunc | TFunction< void(TSharedPtr< FImage > &)> | MuR/Image.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CloneImage | FImageCloneFunc | MuR/Image.h | ||
| CreateImage | FImageCreateFunc | MuR/Image.h | ||
| FormatImageOverride | FImagePixelFormatFunc | MuR/Image.h | ||
| ReleaseImage | FImageReleaseFunc | MuR/Image.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedPtr< FImage > ExtractMip
(
const FImage* From, |
MuR/Image.h | ||
void FillColor
(
FImage* Image, |
Fill the image with a plain colour. | MuR/Image.h | |
| MuR/Image.h | |||
bool ImageCrop
(
TSharedPtr< FImage >& OutCropped, |
MuR/Image.h | ||
void ImageMipmap
(
int32 CompressionQuality, |
Generate the mipmaps for images. | MuR/Image.h | |
void ImageMipmap
(
FImageOperator::FScratchImageMipmap&, |
MuR/Image.h | ||
void ImageMipmap_PrepareScratch
(
const FImage* DestImage, |
Mipmap separating the worst case treatment in 3 steps to manage allocations of temp data. | MuR/Image.h | |
void ImageMipmap_ReleaseScratch
(
FScratchImageMipmap& |
MuR/Image.h | ||
TSharedPtr< FImage > ImagePixelFormat
(
int32 Quality, |
Convert an image to another pixel format. | MuR/Image.h | |
void ImagePixelFormat
(
bool& bOutSuccess, |
Convert an image to another pixel format. Not all format conversions are implemented. | MuR/Image.h | |
void ImagePixelFormat
(
bool& bOutSuccess, |
MuR/Image.h | ||
| Bilinear filter image resize. | MuR/Image.h | ||
TSharedPtr< FImage > ImageSwizzle
(
EImageFormat Format, |
MuR/Image.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FImageOperator GetDefault
(
const FImagePixelFormatFunc& InFormatOverride |
Create an default version for untracked resources. | MuR/Image.h |