Method CreateTilemap
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
AsepriteFileThe aseprite file instance.
device
GraphicsDeviceThe graphics device used to create graphical resources.
frameIndex
intThe index of the frame with the tilemap.
options
ProcessorOptionsThe options to use when processing the tilemap.
Returns
Exceptions
- ArgumentNullException
Thrown if
aseFile
is null.-or-
throw if
device
is null.