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