コード例 #1
0
 // =====================================================================
 public void DrawRectangle(Rect theRect, ILineStyleInfo theStyle)
 {
     mGraphics.DrawRectangle(((GDIPlusLineStyle)theStyle).Pen, theRect.GetRectangle());
 }
コード例 #2
0
 public void FillRectangle(Rect theRect, System.Drawing.Color fillColor)
 {
     mGraphics.FillRectangle(new System.Drawing.SolidBrush(fillColor), theRect.GetRectangle());
 }
コード例 #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);
 }
コード例 #4
0
 public void FillRectangle(Rect theRect, IFillStyleInfo theStyle)
 {
     mGraphics.FillRectangle(((GDIPlusFillStyle)theStyle).Brush, theRect.GetRectangle());
 }