Method CreateSpriteSheet
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
aseFileAsepriteFileThe aseprite file instance.
deviceGraphicsDeviceThe graphics device used to create graphical resources.
optionsProcessorOptionsThe options to use when processing the sprite sheet..
Returns
- SpriteSheet
The SpriteSheet created by this method.
Exceptions
- ArgumentNullException
Thrown if the
aseFileparameter is null.-or-
Thrown if the
deviceparameter is null.