public override void FillRect(Geometry.RectangleF rect, Geometry.Color color) { CheckInFrame("FillRect"); mGraphics.FillRectangle(new SolidBrush(Interop.Convert(color)), Interop.Convert(rect)); }
public override void DrawRect(Geometry.RectangleF rect, Geometry.Color color) { CheckInFrame("DrawRect"); mGraphics.DrawRectangle(new Pen(Interop.Convert(color)), Rectangle.Round(Interop.Convert(rect))); }
public override void DrawLine(Geometry.Point a, Geometry.Point b, Geometry.Color color) { CheckInFrame("DrawLine"); mGraphics.DrawLine(new Pen(Interop.Convert(color)), Interop.Convert(a), Interop.Convert(b)); }
public override void Clear(Geometry.Color color, Geometry.Rectangle destRect) { CheckInFrame("Clear"); mGraphics.FillRectangle( new SolidBrush(Interop.Convert(color)), Interop.Convert(destRect)); }
public override void FillPolygon(Geometry.PointF[] pts, int startIndex, int length, Geometry.Color color) { SolidBrush b = new SolidBrush(Interop.Convert(color)); PointF[] p = new PointF[length]; for (int i = 0; i < p.Length; i++) { p[i] = Interop.Convert(pts[startIndex + i]); } mGraphics.FillPolygon(b, p); b.Dispose(); }
public override void Clear(Geometry.Color color) { CheckInFrame("Clear"); mGraphics.Clear(Interop.Convert(color)); }
public override void SetVariable(string name, AgateLib.Geometry.Color color) { throw new NotImplementedException(); }