Class TextureExtension
The texture extension methods class.
Inherited Members
Namespace: Evergine.Assets
Assembly: Evergine.Assets.dll
Syntax
public static class TextureExtension
Methods
SafeToStream(Texture, GraphicsContext)
Take a snapshot of the texture.
Declaration
public static Stream SafeToStream(this Texture texture, GraphicsContext context)
Parameters
Type | Name | Description |
---|---|---|
Texture | texture | The Texture. |
Graphics |
context | The Graphics |
Returns
SaveToFile(Texture, GraphicsContext, string)
Save a texture in a file.
Declaration
public static void SaveToFile(this Texture texture, GraphicsContext context, string outputPath)
Parameters
Type | Name | Description |
---|---|---|
Texture | texture | The Texture. |
Graphics |
context | The Graphics |
string | outputPath | The path for the out put file. |