C# 클래스 StdPaint.RasterFont

Defines an ASCII font using a matrix of boolean values.
파일 보기 프로젝트 열기: TheBerkin/StdPaint 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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