Table of Contents

Constructor TextureRegion

Namespace
MonoGame.Aseprite
Assembly
MonoGame.Aseprite.dll

TextureRegion(string, Texture2D, Rectangle)

Initializes a new instance of the TextureRegion class.

public TextureRegion(string name, Texture2D texture, Rectangle bounds)

Parameters

name string

The name to assign the TextureRegion.

texture Texture2D

The source texture image this region is from.

bounds Rectangle

The rectangular bounds of this region within the source texture.