C# Class Sharplike.Core.Rendering.GlyphPalette

Afficher le fichier Open project: eropple/sharplike Class Usage Examples

Méthodes publiques

Свойство Type Description
ColumnCount System.Int32
GlyphCount System.Int32
GlyphDimensions System.Drawing.Size
RowCount System.Int32
SourceBitmap System.Drawing.Bitmap

Méthodes publiques

Méthode Description
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.

Method Details

ComputeGlyphRectangle() public méthode

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

GlyphPalette() public méthode

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.
Résultat System

GlyphPalette() public méthode

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.
Résultat System

Property Details

ColumnCount public_oe property

The number of columns in the source bitmap.
public Int32,System ColumnCount
Résultat System.Int32

GlyphCount public_oe property

The total number of glyphs in the glyph palette.
public Int32,System GlyphCount
Résultat System.Int32

GlyphDimensions public_oe property

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

RowCount public_oe property

The number of rows in the source bitmap.
public Int32,System RowCount
Résultat System.Int32

SourceBitmap public_oe property

The original source image for all glyphs.
public Bitmap,System.Drawing SourceBitmap
Résultat System.Drawing.Bitmap