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.ImageInheritance
object ← Texture.SpritesheetData.Sequence.Frame.Image
Properties
CroppedMax
Gets or sets the maximum UV coordinates for the cropped image area.
public Vector2 CroppedMax { get; set; }Property Value
CroppedMin
Gets or sets the minimum UV coordinates for the cropped image area.
public Vector2 CroppedMin { get; set; }Property Value
UncroppedMax
Gets or sets the maximum UV coordinates for the uncropped image area.
public Vector2 UncroppedMax { get; set; }Property Value
UncroppedMin
Gets or sets the minimum UV coordinates for the uncropped image area.
public Vector2 UncroppedMin { get; set; }Property Value
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
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
A rectangle representing the uncropped area in pixel coordinates.

