Table of Contents

Method CreateSpriteSheet

Namespace
MonoGame.Aseprite
Assembly
MonoGame.Aseprite.dll

CreateSpriteSheet(AsepriteFile, GraphicsDevice, ProcessorOptions?)

Creates a new SpriteSheet from the provided aseprite file.

public static SpriteSheet CreateSpriteSheet(this AsepriteFile aseFile, GraphicsDevice device, ProcessorOptions? options = null)

Parameters

aseFile AsepriteFile

The aseprite file instance.

device GraphicsDevice

The graphics device used to create graphical resources.

options ProcessorOptions

The options to use when processing the sprite sheet..

Returns

SpriteSheet

The SpriteSheet created by this method.

Exceptions

ArgumentNullException

Thrown if the aseFile parameter is null.

-or-

Thrown if the device parameter is null.