Search Results for

    Show / Hide Table of Contents

    Class TextureExtension

    The texture extension methods class.

    Inheritance
    object
    TextureExtension
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    In This Article
    Back to top
    Generated by DocFX