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