Table of Contents

Class Texture.SpritesheetData.Sequence.Frame.Image

Namespace
ValveResourceFormat.ResourceTypes
Assembly
ValveResourceFormat.dll

Represents an image within a frame, defining cropped and uncropped UV coordinates.

public class Texture.SpritesheetData.Sequence.Frame.Image

Inheritance

Inherited Members

Properties

CroppedMax

Gets or sets the maximum UV coordinates for the cropped image area.

public Vector2 CroppedMax { get; set; }

Property Value

Vector2

CroppedMin

Gets or sets the minimum UV coordinates for the cropped image area.

public Vector2 CroppedMin { get; set; }

Property Value

Vector2

UncroppedMax

Gets or sets the maximum UV coordinates for the uncropped image area.

public Vector2 UncroppedMax { get; set; }

Property Value

Vector2

UncroppedMin

Gets or sets the minimum UV coordinates for the uncropped image area.

public Vector2 UncroppedMin { get; set; }

Property Value

Vector2

Methods

GetCroppedRect(int, int)

Gets the cropped rectangle in pixel coordinates for the specified dimensions.

public SKRectI GetCroppedRect(int width, int height)

Parameters

width int

The width of the texture in pixels.

height int

The height of the texture in pixels.

Returns

SKRectI

A rectangle representing the cropped area in pixel coordinates.

GetUncroppedRect(int, int)

Gets the uncropped rectangle in pixel coordinates for the specified dimensions.

public SKRectI GetUncroppedRect(int width, int height)

Parameters

width int

The width of the texture in pixels.

height int

The height of the texture in pixels.

Returns

SKRectI

A rectangle representing the uncropped area in pixel coordinates.