Show / Hide Table of Contents

Class TextureToSurfaceReader

Reads a texture to a cached surface. Used for animation.

Inheritance
object
TextureToSurfaceReader
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadConsole.Readers
Assembly: SadConsole.Host.MonoGame.dll
Syntax
public class TextureToSurfaceReader

Constructors

TextureToSurfaceReader(int, int, IFont, Point)

Creates a new instance of the class.

Declaration
public TextureToSurfaceReader(int pixelWidth, int pixelHeight, IFont font, Point fontSize)
Parameters
Type Name Description
int pixelWidth

Width the source texture.

int pixelHeight

Height of the source texture.

IFont font

Font used for rendering.

Point fontSize

Size of the font.

Properties

UseBlockMode

Renders the cells as blocks instead of characters.

Declaration
public bool UseBlockMode { get; set; }
Property Value
Type Description
bool

Methods

GetSurface(Texture2D)

Returns a surface with the specified image rendered to it as characters.

Declaration
public Console GetSurface(Texture2D image)
Parameters
Type Name Description
Texture2D image

The image to render.

Returns
Type Description
Console

The surface.

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX