Table of Contents

Method CreateTilemap

Namespace
MonoGame.Aseprite
Assembly
MonoGame.Aseprite.dll

CreateTilemap(AsepriteFile, GraphicsDevice, int, ProcessorOptions?)

Creates a new Tilemap from a specified frame in the provided aseprite file.

public static Tilemap CreateTilemap(this AsepriteFile aseFile, GraphicsDevice device, int frameIndex, ProcessorOptions? options = null)

Parameters

aseFile AsepriteFile

The aseprite file instance.

device GraphicsDevice

The graphics device used to create graphical resources.

frameIndex int

The index of the frame with the tilemap.

options ProcessorOptions

The options to use when processing the tilemap.

Returns

Tilemap

The Tilemap created by this method.

Exceptions

ArgumentNullException

Thrown if aseFile is null.

-or-

throw if device is null.