![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ImageDimensions.h>
Public Member Functions | |
| FImageDimensions (int32 WidthIn=0, int32 HeightIn=0) | |
| void | SetDimensions (int32 WidthIn, int32 HeightIn) |
| int32 | GetWidth () const |
| int32 | GetHeight () const |
| int64 | Num () const |
| bool | IsSquare () const |
| bool | IsValidCoords (const FVector2i &Coords) const |
| void | Clamp (int32 &X, int32 &Y) const |
| void | Clamp (FVector2i &Coords) const |
| int64 | GetIndex (int32 X, int32 Y) const |
| int64 | GetIndex (const FVector2i &Coords) const |
| int64 | GetIndexMirrored (const FVector2i &Coords, bool bFlipX, bool bFlipY) const |
| FVector2i | GetCoords (int64 LinearIndex) const |
| FVector2d | GetTexelSize () const |
| FVector2d | GetTexelUV (const FVector2i &Coords) const |
| FVector2d | GetTexelUV (int64 LinearIndex) const |
| FVector2d | GetTexelDistance (const FVector2d &P, const FVector2d Q) const |
| FVector2i | PixelToCoords (const FVector2d &PixelPosition) const |
| FVector2i | UVToCoords (const FVector2d &UVPosition) const |
| bool | operator== (const FImageDimensions &Other) const |
| bool | operator!= (const FImageDimensions &Other) const |
Protected Attributes | |
| int32 | Width = 0 |
| int32 | Height = 0 |
FImageDimensions provides various functions for working with size/indices/coordinates of a 2D image, as well as standard UV spaces
Clamp input coordinates to valid range of image coordinates
Clamp input coordinates to valid range of image coordinates
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set the dimensions of this image.
|
protected |
|
protected |