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. |
GraphicsContext | context | The GraphicsContext to save. |
Returns
Type | Description |
---|---|
Stream | A Stream with the snapshot in jpg. |
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. |
GraphicsContext | context | The GraphicsContext to save. |
string | outputPath | The path for the out put file. |