C# Class Alsing.Drawing.DrawingTools

Mostra file Open project: vchelaru/FlatRedBall

Public Methods

Method Description
DrawBorder ( BorderStyle2 Style, Color BorderColor, Graphics g, Rectangle r ) : void
DrawControl ( Control control ) : Bitmap
DrawControl ( Control control, Bitmap b ) : bool
DrawDesignTimeBorder ( Graphics g, Rectangle rect ) : void
DrawDesignTimeLine ( Graphics g, int x1, int y1, int x2, int y2 ) : void
DrawGrayImage ( Graphics g, Image Image, int X, int Y, float TransparencyFactor ) : void
DrawInsertIndicatorH ( int x, int y, int width, Graphics g, Color c ) : void
DrawInsertIndicatorV ( int x, int y, int height, Graphics g, Color c ) : void
DrawSortArrow ( int x, int y, Graphics g, bool Ascending ) : void
DrawTransparentImage ( Graphics g, Image Image, int X, int Y, float TransparencyFactor ) : void
MixColors ( Color c1, Color c2, double mix ) : Color

Private Methods

Method Description
DrawBorder ( Border3DStyle Style, Color BorderColor, Graphics g, Rectangle r ) : void
DrawRaisedBorder ( Graphics g, Brush dark, Rectangle r, Brush darkdark, Brush light, Brush normal ) : void
DrawSunkenBorder ( Graphics g, Brush dark, Rectangle r, Brush darkdark, Brush light, Brush normal ) : void
DrawSunkenOuterBorder ( Graphics g, Brush dark, Rectangle r, Brush light ) : void
GetDarkBrush ( Color BorderColor ) : SolidBrush
GetDarkDarkBrush ( Color BorderColor ) : SolidBrush
GetLightBrush ( Color BorderColor ) : SolidBrush
GetNormalBrush ( Color BorderColor ) : SolidBrush
RaisedInnerBorder ( Graphics g, Brush dark, Rectangle r, Brush light ) : void

Method Details

DrawBorder() public static method

public static DrawBorder ( BorderStyle2 Style, Color BorderColor, Graphics g, Rectangle r ) : void
Style BorderStyle2
BorderColor Color
g System.Drawing.Graphics
r System.Drawing.Rectangle
return void

DrawControl() public static method

public static DrawControl ( Control control ) : Bitmap
control System.Windows.Forms.Control
return System.Drawing.Bitmap

DrawControl() public static method

public static DrawControl ( Control control, Bitmap b ) : bool
control System.Windows.Forms.Control
b System.Drawing.Bitmap
return bool

DrawDesignTimeBorder() public static method

public static DrawDesignTimeBorder ( Graphics g, Rectangle rect ) : void
g System.Drawing.Graphics
rect System.Drawing.Rectangle
return void

DrawDesignTimeLine() public static method

public static DrawDesignTimeLine ( Graphics g, int x1, int y1, int x2, int y2 ) : void
g System.Drawing.Graphics
x1 int
y1 int
x2 int
y2 int
return void

DrawGrayImage() public static method

public static DrawGrayImage ( Graphics g, Image Image, int X, int Y, float TransparencyFactor ) : void
g System.Drawing.Graphics
Image Image
X int
Y int
TransparencyFactor float
return void

DrawInsertIndicatorH() public static method

public static DrawInsertIndicatorH ( int x, int y, int width, Graphics g, Color c ) : void
x int
y int
width int
g System.Drawing.Graphics
c Color
return void

DrawInsertIndicatorV() public static method

public static DrawInsertIndicatorV ( int x, int y, int height, Graphics g, Color c ) : void
x int
y int
height int
g System.Drawing.Graphics
c Color
return void

DrawSortArrow() public static method

public static DrawSortArrow ( int x, int y, Graphics g, bool Ascending ) : void
x int
y int
g System.Drawing.Graphics
Ascending bool
return void

DrawTransparentImage() public static method

public static DrawTransparentImage ( Graphics g, Image Image, int X, int Y, float TransparencyFactor ) : void
g System.Drawing.Graphics
Image Image
X int
Y int
TransparencyFactor float
return void

MixColors() public static method

public static MixColors ( Color c1, Color c2, double mix ) : Color
c1 Color
c2 Color
mix double
return Color