C# Class Sharplike.Core.Rendering.GlyphPalette

Datei anzeigen Open project: eropple/sharplike Class Usage Examples

Public Properties

Property Type Description
ColumnCount System.Int32
GlyphCount System.Int32
GlyphDimensions System.Drawing.Size
RowCount System.Int32
SourceBitmap System.Drawing.Bitmap

Public Methods

Method 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 method

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

GlyphPalette() public method

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.
return System

GlyphPalette() public method

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.
return System

Property Details

ColumnCount public_oe property

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

GlyphCount public_oe property

The total number of glyphs in the glyph palette.
public Int32,System GlyphCount
return 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
return System.Drawing.Size

RowCount public_oe property

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

SourceBitmap public_oe property

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