Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Image
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Image/ImageBuilder.h |
| Include | #include "Image/ImageBuilder.h" |
Syntax
template<typename PixelType>
class TImageBuilder
Remarks
TImageBuilder is used to create and populate a 2D image with a templated "pixel" type.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FImageDimensions | Dimensions | ||
| TDenseGrid2< PixelType > | Image |
Functions
| Type | Name | Description | |
|---|---|---|---|
| PixelType | BilinearSample
(
const FVector2d& PixelCoords, |
Sample the image value at floating-point pixel coords with Bilinear interpolation The pixel coords are expected to be in the [0,Width]x[0,Height] image pixel rectangle. | |
| PixelType | BilinearSampleUV
(
const FVector2d& UVCoords, |
Sample the image value at floating-point UV coords with Bilinear interpolation. | |
| void | Clear
(
const PixelType& ClearValue |
Clear all Pixels in the current Mip to the clear/default color for the texture build type | |
| bool | ContainsPixel
(
int32 X, |
||
| bool | ContainsPixel
(
const FVector2i& ImageCoords |
||
| void | Convert
(
TFunctionRef< OtherType(const PixelType&)> ConvertFunc, |
Convert to a different data type of same Dimensions using ConvertFunc | |
| void | CopyPixel
(
int64 FromLinearIndex, |
Copy Pixel value from one linear index to another | |
| TImageBuilder< PixelType > | FastDownsample
(
int32 SubSteps, |
Very basic downsampling technqiue that just averages NxN pixel blocks. Multi-threaded. | |
| const FImageDimensions & | |||
| TArrayView64< PixelType > | |||
| TConstArrayView64< PixelType > | |||
| PixelType & | Get the Pixel at the given X/Y coordinates | ||
| PixelType & | GetPixel
(
int64 LinearIndex |
Get the Pixel at the given linear index | |
| const PixelType & | Get the Pixel at the given X/Y coordinates | ||
| const PixelType & | GetPixel
(
int64 LinearIndex |
Get the Pixel at the given linear index | |
| PixelType & | GetPixel
(
int32 X, |
Get the Pixel at the given X/Y coordinates | |
| const PixelType & | GetPixel
(
int32 X, |
Get the Pixel at the given X/Y coordinates | |
| FVector2d | GetTiledUV
(
const FVector2d& UVCoords |
||
| bool | |||
| PixelType | NearestSampleUV
(
const FVector2d& UVCoords |
Sample the image value at floating-point UV coords with Nearest sampling. | |
| void | SetDimensions
(
FImageDimensions DimensionsIn |
||
| void | SetPixel
(
int64 LinearIndex, |
Set the Pixel at the given linear index to the given PixelType | |
| void | Set the Pixel at the given X/Y coordinates to the given PixelType | ||
| void | SetPixel
(
int32 X, |
Set the Pixel at the given X/Y coordinates to the given PixelType |