C# Class DrawUtils, TestMeApp

Inheritance: MonoBehaviour
Mostrar archivo Open project: Hli4S/TestMeApp Class Usage Examples

Public Properties

Property Type Description
BGTexture string

Public Methods

Method Description
CodeToImage ( string Code ) : Image,
ColorFromHex ( string Hex ) : Color
DrawText ( Graphics G, Rectangle, ContRect, string Text, Font TFont, HorizontalAlignment, TAlign, Color TColor ) : void
DrawTextWithShadow ( Graphics G, Rectangle, ContRect, string Text, Font TFont, HorizontalAlignment, TAlign, Color TColor, Color BColor ) : void
FillDualGradPath ( Graphics g, Color Col1, Color Col2, Rectangle, rect, GraphicsPath, gp, GradientAlignment align ) : void
FillGradientBeam ( Graphics g, Color Col1, Color Col2, Rectangle, rect, GradientAlignment align ) : void
RoundRect ( Rectangle, Rectangle, int Curve ) : GraphicsPath,
RoundedTopRect ( Rectangle, Rectangle, int Curve ) : GraphicsPath,

Method Details

CodeToImage() public method

public CodeToImage ( string Code ) : Image,
Code string
return Image,

ColorFromHex() public method

public ColorFromHex ( string Hex ) : Color
Hex string
return Color

DrawText() public method

public DrawText ( Graphics G, Rectangle, ContRect, string Text, Font TFont, HorizontalAlignment, TAlign, Color TColor ) : void
G Graphics
ContRect Rectangle,
Text string
TFont Font
TAlign HorizontalAlignment,
TColor Color
return void

DrawTextWithShadow() public method

public DrawTextWithShadow ( Graphics G, Rectangle, ContRect, string Text, Font TFont, HorizontalAlignment, TAlign, Color TColor, Color BColor ) : void
G Graphics
ContRect Rectangle,
Text string
TFont Font
TAlign HorizontalAlignment,
TColor Color
BColor Color
return void

FillDualGradPath() public method

public FillDualGradPath ( Graphics g, Color Col1, Color Col2, Rectangle, rect, GraphicsPath, gp, GradientAlignment align ) : void
g Graphics
Col1 Color
Col2 Color
rect Rectangle,
gp GraphicsPath,
align GradientAlignment
return void

FillGradientBeam() public method

public FillGradientBeam ( Graphics g, Color Col1, Color Col2, Rectangle, rect, GradientAlignment align ) : void
g Graphics
Col1 Color
Col2 Color
rect Rectangle,
align GradientAlignment
return void

RoundRect() public method

public RoundRect ( Rectangle, Rectangle, int Curve ) : GraphicsPath,
Rectangle Rectangle,
Curve int
return GraphicsPath,

RoundedTopRect() public method

public RoundedTopRect ( Rectangle, Rectangle, int Curve ) : GraphicsPath,
Rectangle Rectangle,
Curve int
return GraphicsPath,

Property Details

BGTexture public_oe property

public string BGTexture
return string