Navigation
API > API/Runtime > API/Runtime/DataflowCore
Represents image for dataflow type is constrained to Float32 with 1 or 4 channels
| Name | FDataflowImage |
| Type | struct |
| Header File | /Engine/Source/Runtime/Experimental/Dataflow/Core/Public/Dataflow/DataflowImage.h |
| Include Path | #include "Dataflow/DataflowImage.h" |
Syntax
USTRUCT ()
struct FDataflowImage
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Image | FImage | Dataflow/DataflowImage.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ConvertToRGBA32F() |
Convert the current image to a 4 channel float pixel format previous data is kept | Dataflow/DataflowImage.h | |
bool CopyRGBAPixels
(
TArrayView64< FVector4f > Pixels |
Copy RGBA32F pixels to the image Number of pixels must match and format must be RGBA32F return false if the copy could not be done | Dataflow/DataflowImage.h | |
void CreateFromColor
(
EDataflowImageResolution Resolution, |
Create a four channels float format image filled with a specific color | Dataflow/DataflowImage.h | |
void CreateFromColor
(
int32 Width, |
Create a four channels float format image filled with a specific color | Dataflow/DataflowImage.h | |
void CreateR32F
(
EDataflowImageResolution Resolution |
Create a single channel float format image | Dataflow/DataflowImage.h | |
void CreateR32F
(
int32 Width, |
Create a single channel float format image | Dataflow/DataflowImage.h | |
void CreateRGBA32F
(
EDataflowImageResolution Resolution |
Create a four channels float format image | Dataflow/DataflowImage.h | |
void CreateRGBA32F
(
int32 Width, |
Create a four channels float format image | Dataflow/DataflowImage.h | |
int32 GetHeight() |
Dataflow/DataflowImage.h | ||
const FImage & GetImage() |
Get the readonly underlying image object | Dataflow/DataflowImage.h | |
int32 GetWidth() |
Dataflow/DataflowImage.h | ||
void ReadChannel
(
EDataflowImageChannel Channel, |
Get a specific color channel and copy it to an image Warning : the outImage will be resized to the size of the current image and any previously store data will be lost | Dataflow/DataflowImage.h | |
bool Serialize
(
FArchive& Ar |
Dataflow/DataflowImage.h | ||
void WriteChannel
(
EDataflowImageChannel Channel, |
Write to a sepcific channel from an existing image if the source image is not the same size it will be resized to adapt the size of the current image if the source image is not a greyscale image it will be converted to greyscale before copy the data to the channel | Dataflow/DataflowImage.h |