C# Класс StdPaint.RasterFont

Defines an ASCII font using a matrix of boolean values.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
BasicSmall RasterFont

Открытые методы

Метод Описание
Draw ( ConsoleBuffer buffer, string text, Point position, BufferBrush brush, Alignment alignment ) : void

Draws text to a buffer using the specified settings.

FromString ( string source ) : RasterFont

Converts a font definition string to a raster font.

RasterFont ( int cx, int cy ) : System

Creates an empty raster font of the specified dimensions.

Описание методов

Draw() публичный Метод

Draws text to a buffer using the specified settings.
public Draw ( ConsoleBuffer buffer, string text, Point position, BufferBrush brush, Alignment alignment ) : void
buffer ConsoleBuffer The buffer to draw to.
text string The text to draw.
position Point The position of the text.
brush BufferBrush The brush to draw the text with.
alignment Alignment The alignment of the text relative to its position.
Результат void

FromString() публичный статический Метод

Converts a font definition string to a raster font.
public static FromString ( string source ) : RasterFont
source string The string to get font data from.
Результат RasterFont

RasterFont() публичный Метод

Creates an empty raster font of the specified dimensions.
public RasterFont ( int cx, int cy ) : System
cx int The glyph width to use.
cy int The glyph height to use.
Результат System

Описание свойств

BasicSmall публичное статическое свойство

A built-in font.
public static RasterFont,StdPaint BasicSmall
Результат RasterFont