C# Class Dwarrowdelf.Client.DrawingCache

Exibir arquivo Open project: tomba/dwarrowdelf Class Usage Examples

Public Methods

Method Description
DrawingCache ( ) : System
DrawingCache ( Uri uri ) : System
GetCharacterDrawing ( char character, Color color, bool fillBg ) : System.Windows.Media.Drawing
GetDrawing ( string drawingName, Color color ) : System.Windows.Media.Drawing
GetDrawing ( string drawingName, GameColor color ) : System.Windows.Media.Drawing

Private Methods

Method Description
ColorizeBrush ( System.Windows.Media.Brush brush, Color tintColor ) : void
ColorizeDrawing ( System.Windows.Media.Drawing drawing, Color tintColor ) : void
CreateCharacterDrawing ( char c, Color color, bool fillBg ) : System.Windows.Media.Drawing
HSVtoRGB ( float &r, float &g, float &b, float h, float s, float v ) : void
RGBtoHSV ( float r, float g, float b, float &h, float &s, float &v ) : void
TintColor ( Color c, Color tint ) : Color

Method Details

DrawingCache() public method

public DrawingCache ( ) : System
return System

DrawingCache() public method

public DrawingCache ( Uri uri ) : System
uri System.Uri
return System

GetCharacterDrawing() public method

public GetCharacterDrawing ( char character, Color color, bool fillBg ) : System.Windows.Media.Drawing
character char
color Color
fillBg bool
return System.Windows.Media.Drawing

GetDrawing() public method

public GetDrawing ( string drawingName, Color color ) : System.Windows.Media.Drawing
drawingName string
color Color
return System.Windows.Media.Drawing

GetDrawing() public method

public GetDrawing ( string drawingName, GameColor color ) : System.Windows.Media.Drawing
drawingName string
color GameColor
return System.Windows.Media.Drawing