Table of Contents

Method ToTexture2D

Namespace
MonoGame.Aseprite.Utils
Assembly
MonoGame.Aseprite.dll

ToTexture2D(Texture, GraphicsDevice)

Converts an AsepriteDotNet Texture to a MonoGame Texture2D object.

public static Texture2D ToTexture2D(this Texture texture, GraphicsDevice device)

Parameters

texture Texture

The AsepriteDotNet texture to convert.

device GraphicsDevice

The graphics device used to create graphical resources.

Returns

Texture2D

The converted MonoGame Texture2D object.