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
aseFileAsepriteFileThe aseprite file instance.
deviceGraphicsDeviceThe graphics device used to create graphical resources.
frameIndexintThe index of the frame with the tilemap.
optionsProcessorOptionsThe options to use when processing the tilemap.
Returns
Exceptions
- ArgumentNullException
Thrown if
aseFileis null.-or-
throw if
deviceis null.