Exemplo n.º 1
0
 // =====================================================================
 public void DrawRectangle(Rect theRect, ILineStyleInfo theStyle)
 {
     mGraphics.DrawRectangle(((GDIPlusLineStyle)theStyle).Pen, theRect.GetRectangle());
 }
Exemplo n.º 2
0
 public void FillRectangle(Rect theRect, System.Drawing.Color fillColor)
 {
     mGraphics.FillRectangle(new System.Drawing.SolidBrush(fillColor), theRect.GetRectangle());
 }
Exemplo n.º 3
0
 public void GradientFillRectangle(Rect theRect, System.Drawing.Color Color1, System.Drawing.Color Color2, System.Drawing.Drawing2D.LinearGradientMode GradientType)
 {
     System.Drawing.Rectangle R = theRect.GetRectangle();
     System.Drawing.Brush b = new System.Drawing.Drawing2D.LinearGradientBrush(R, Color1, Color2, GradientType);
     mGraphics.FillRectangle(b, R);
 }
Exemplo n.º 4
0
 public void FillRectangle(Rect theRect, IFillStyleInfo theStyle)
 {
     mGraphics.FillRectangle(((GDIPlusFillStyle)theStyle).Brush, theRect.GetRectangle());
 }