Navigation
API > API/Runtime > API/Runtime/ImageCore
Structure for raw image data.
| Name | FImage |
| Type | struct |
| Header File | /Engine/Source/Runtime/ImageCore/Public/ImageCore.h |
| Include Path | #include "ImageCore.h" |
Syntax
struct FImage : public FImageInfo
Inheritance Hierarchy
- FImageInfo → FImage
- FImage
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FImage
(
int32 InSizeX, |
Creates and initializes a new image with the specified number of slices. | ImageCore.h | |
FImage
(
int32 InSizeX, |
Creates and initializes a new image with a single slice. | ImageCore.h | |
FImage
(
int32 InSizeX, |
Note: changed default GammaSpace from Linear to GetDefaultGammaSpace | ImageCore.h | |
FImage
(
int32 InSizeX, |
Note: changed default GammaSpace from Linear to GetDefaultGammaSpace | ImageCore.h | |
| ImageCore.h | |||
FImage () |
Default constructor. | ImageCore.h | |
| Move constructor | ImageCore.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| RawData | TArray64< uint8 > | Raw image data. | ImageCore.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| ImageCore.h | |||
| ImageCore.h | |||
| ImageCore.h | |||
| ImageCore.h | |||
TArrayView64< const uint16 > AsG16 () |
ImageCore.h | ||
TArrayView64< uint16 > AsG16 () |
ImageCore.h | ||
TArrayView64< const uint8 > AsG8 () |
ImageCore.h | ||
TArrayView64< uint8 > AsG8 () |
ImageCore.h | ||
| ImageCore.h | |||
| ImageCore.h | |||
TArrayView64< const float > AsR32F () |
ImageCore.h | ||
TArrayView64< float > AsR32F () |
ImageCore.h | ||
TArrayView64< const uint16 > AsRGBA16 () |
ImageCore.h | ||
TArrayView64< uint16 > AsRGBA16 () |
ImageCore.h | ||
TArrayView64< FFloat16Color > AsRGBA16F () |
ImageCore.h | ||
TArrayView64< const FFloat16Color > AsRGBA16F () |
ImageCore.h | ||
TArrayView64< FLinearColor > AsRGBA32F () |
ImageCore.h | ||
TArrayView64< const FLinearColor > AsRGBA32F () |
ImageCore.h | ||
void ChangeFormat
(
ERawImageFormat::Type DestFormat, |
In-place format change : does nothing if already in the desired format | ImageCore.h | |
void CopyTo
(
FImage& DestImage, |
Copies the image to a destination image with the specified format. | ImageCore.h | |
| CopyTo same format. | ImageCore.h | ||
void FreeData
(
bool bAsyncDetached |
Free FImage.RawData if bAsyncDetached free is done on a Task, not immediately, but the RawData member is empty upon return note that FreeData does not change the FImageInfo fields, only frees RawData, follow up with Reset() if desired | ImageCore.h | |
const FLinearColor GetOnePixelLinear
(
int32 X, |
Get one pixel from the image and return in Linear color. | ImageCore.h | |
void * GetPixelPointer
(
int32 X, |
Get a pointer to a pixel | ImageCore.h | |
FImageView GetSlice
(
int32 SliceIndex |
Get an FImageView to one 2d slice | ImageCore.h | |
void Init
(
int32 InSizeX, |
ImageCore.h | ||
void Init
(
int32 InSizeX, |
Initializes this image with a single slice. Allocates RawData. | ImageCore.h | |
void Init
(
int32 InSizeX, |
Initializes this image with the specified number of slices. Allocates RawData. | ImageCore.h | |
void Init
(
const FImageInfo& Info |
Initializes this image with specified Info. Allocates RawData. | ImageCore.h | |
void Init
(
int32 InSizeX, |
ImageCore.h | ||
| ImageCore.h | |||
| Linearize to a RGBA32F destination image by applying the decoding function that corresponds to the specified source encoding. | ImageCore.h | ||
void Reset() |
Reset this FImage to empty default constructed state. | ImageCore.h | |
void ResizeTo
(
FImage& DestImage, |
Copies and resizes the image to a destination image with the specified size and format. | ImageCore.h | |
void Swap
(
FImage& Other |
Swap the contents of this FImage with another. | ImageCore.h | |
void TransformToWorkingColorSpace
(
const FVector2d& SourceRedChromaticity, |
ImageCore.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator FImageView() |
Implicit conversion to FImageView allows FImage to be passed to functions that take FImageView functions that read images should use "const FImageView &" as their argument type | ImageCore.h | |
| Move assignment | ImageCore.h | ||
| ImageCore.h |