Table of Contents

Method ToXnaRectangle

Namespace
MonoGame.Aseprite.Utils
Assembly
MonoGame.Aseprite.dll

ToXnaRectangle(Rectangle)

Converts an AsepriteDotNet rectangle to a MonoGame Rectangle object.

public static Rectangle ToXnaRectangle(this Rectangle rect)

Parameters

rect Rectangle

The AsepriteDotNet rectangle to convert.

Returns

Rectangle

The converted MonoGame Rectangle object.