Navigation
API > API/Runtime > API/Runtime/ImageCore
Inheritance Hierarchy
- FImageInfo
- FImage
- FSharedImage
References
| Module | ImageCore |
| Header | /Engine/Source/Runtime/ImageCore/Public/ImageCore.h |
| Include | #include "ImageCore.h" |
Syntax
struct FImage : public FImageInfo
Remarks
Structure for raw image data.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray64< uint8 > | RawData | Raw image data. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FImage () |
Default constructor. | ||
FImage
(
int32 InSizeX, |
Note: changed default GammaSpace from Linear to GetDefaultGammaSpace | ||
FImage
(
int32 InSizeX, |
Note: changed default GammaSpace from Linear to GetDefaultGammaSpace | ||
FImage
(
int32 InSizeX, |
Creates and initializes a new image with a single slice. | ||
FImage
(
int32 InSizeX, |
Creates and initializes a new image with the specified number of slices. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TArrayView64< const FColor > | AsBGRA8 () |
||
| TArrayView64< FColor > | AsBGRA8 () |
||
| TArrayView64< const FColor > | AsBGRE8 () |
||
| TArrayView64< FColor > | AsBGRE8 () |
||
| TArrayView64< const uint16 > | AsG16 () |
||
| TArrayView64< uint16 > | AsG16 () |
||
| TArrayView64< uint8 > | AsG8 () |
||
| TArrayView64< const uint8 > | AsG8 () |
||
| TArrayView64< const FFloat16 > | AsR16F () |
||
| TArrayView64< FFloat16 > | AsR16F () |
||
| TArrayView64< float > | AsR32F () |
||
| TArrayView64< const float > | AsR32F () |
||
| TArrayView64< uint16 > | AsRGBA16 () |
||
| TArrayView64< const uint16 > | AsRGBA16 () |
||
| TArrayView64< FFloat16Color > | AsRGBA16F () |
||
| TArrayView64< const FFloat16Color > | AsRGBA16F () |
||
| TArrayView64< FLinearColor > | AsRGBA32F () |
||
| TArrayView64< const FLinearColor > | AsRGBA32F () |
||
| void | ChangeFormat
(
ERawImageFormat::Type DestFormat, |
In-place format change : does nothing if already in the desired format | |
| void | CopyTo same format. | ||
| void | CopyTo
(
FImage& DestImage, |
Copies the image to a destination image with the specified format. | |
| 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 | |
| const FLinearColor | GetOnePixelLinear
(
int32 X, |
Get one pixel from the image and return in Linear color. | |
| void * | GetPixelPointer
(
int32 X, |
Get a pointer to a pixel | |
| FImageView | Get an FImageView to one 2d slice | ||
| void | Init
(
int32 InSizeX, |
Initializes this image with the specified number of slices. Allocates RawData. | |
| void | Init
(
int32 InSizeX, |
Initializes this image with a single slice. Allocates RawData. | |
| void | Init
(
int32 InSizeX, |
||
| void | Init
(
int32 InSizeX, |
||
| void | Init
(
const FImageInfo& Info |
Initializes this image with specified Info. Allocates RawData. | |
| void | Linearize to a RGBA32F destination image by applying the decoding function that corresponds to the specified source encoding. | ||
| void | |||
| void | ResizeTo
(
FImage& DestImage, |
Copies and resizes the image to a destination image with the specified size and format. | |
| void | Swap the contents of this FImage with another. | ||
| void | TransformToWorkingColorSpace
(
const FVector2d& SourceRedChromaticity, |
Operators
| Type | Name | Description | |
|---|---|---|---|
| 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 |