C# 클래스 Sharplike.Core.Rendering.GlyphPalette

파일 보기 프로젝트 열기: eropple/sharplike 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ColumnCount System.Int32
GlyphCount System.Int32
GlyphDimensions System.Drawing.Size
RowCount System.Int32
SourceBitmap System.Drawing.Bitmap

공개 메소드들

메소드 설명
ComputeGlyphRectangle ( Int32 glyphIndex ) : Rectangle

Generates a rectangle that fully contains the glyph at the specified index.

GlyphPalette ( Stream filedata, Int32 numRows, Int32 numCols ) : System

Stream Constructor.

GlyphPalette ( String filename, Int32 numRows, Int32 numCols ) : System

Constructor.

메소드 상세

ComputeGlyphRectangle() 공개 메소드

Generates a rectangle that fully contains the glyph at the specified index.
public ComputeGlyphRectangle ( Int32 glyphIndex ) : Rectangle
glyphIndex System.Int32 The glyph to select.
리턴 System.Drawing.Rectangle

GlyphPalette() 공개 메소드

Stream Constructor.
public GlyphPalette ( Stream filedata, Int32 numRows, Int32 numCols ) : System
filedata Stream
numRows System.Int32 Number of rows in the glyph bitmap.
numCols System.Int32 Number of columns in the glyph bitmap.
리턴 System

GlyphPalette() 공개 메소드

Constructor.
public GlyphPalette ( String filename, Int32 numRows, Int32 numCols ) : System
filename String Filename of the glyph bitmap.
numRows System.Int32 Number of rows in the glyph bitmap.
numCols System.Int32 Number of columns in the glyph bitmap.
리턴 System

프로퍼티 상세

ColumnCount 공개적으로 프로퍼티

The number of columns in the source bitmap.
public Int32,System ColumnCount
리턴 System.Int32

GlyphCount 공개적으로 프로퍼티

The total number of glyphs in the glyph palette.
public Int32,System GlyphCount
리턴 System.Int32

GlyphDimensions 공개적으로 프로퍼티

The dimensions of a single glyph. Each tile, then, is the same size in pixel terms.
public Size,System.Drawing GlyphDimensions
리턴 System.Drawing.Size

RowCount 공개적으로 프로퍼티

The number of rows in the source bitmap.
public Int32,System RowCount
리턴 System.Int32

SourceBitmap 공개적으로 프로퍼티

The original source image for all glyphs.
public Bitmap,System.Drawing SourceBitmap
리턴 System.Drawing.Bitmap