Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Image
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Image/ImageDimensions.h |
| Include | #include "Image/ImageDimensions.h" |
Syntax
class FImageDimensions
Remarks
FImageDimensions provides various functions for working with size/indices/coordinates of a 2D image, as well as standard UV spaces
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | Height | ||
| int32 | Width |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FImageDimensions
(
int32 WidthIn, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Clamp
(
int32& X, |
Clamp input coordinates to valid range of image coordinates | |
| void | Clamp input coordinates to valid range of image coordinates | ||
| FVector2i | GetCoords
(
int64 LinearIndex |
||
| int32 | GetHeight () |
||
| int64 | GetIndex
(
int32 X, |
||
| int64 | |||
| int64 | GetIndexMirrored
(
const FVector2i& Coords, |
||
| FVector2d | GetTexelDistance
(
const FVector2d& P, |
||
| FVector2d | GetTexelSize () |
||
| FVector2d | GetTexelUV
(
int64 LinearIndex |
||
| FVector2d | GetTexelUV
(
const FVector2i& Coords |
||
| int32 | GetWidth () |
||
| bool | IsSquare () |
||
| bool | IsValidCoords
(
const FVector2i& Coords |
||
| int64 | Num () |
||
| FVector2i | PixelToCoords
(
const FVector2d& PixelPosition |
||
| void | SetDimensions
(
int32 WidthIn, |
Set the dimensions of this image. | |
| FVector2i | UVToCoords
(
const FVector2d& UVPosition |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FImageDimensions& Other |
||
| bool | operator==
(
const FImageDimensions& Other |