示例#1
0
        public override void FillRect(Geometry.RectangleF rect, Geometry.Color color)
        {
            CheckInFrame("FillRect");

            mGraphics.FillRectangle(new SolidBrush(Interop.Convert(color)),
                                    Interop.Convert(rect));
        }
示例#2
0
        public override void DrawRect(Geometry.RectangleF rect, Geometry.Color color)
        {
            CheckInFrame("DrawRect");

            mGraphics.DrawRectangle(new Pen(Interop.Convert(color)),
                                    Rectangle.Round(Interop.Convert(rect)));
        }
示例#3
0
        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));
        }
示例#4
0
        public override void Clear(Geometry.Color color, Geometry.Rectangle destRect)
        {
            CheckInFrame("Clear");

            mGraphics.FillRectangle(
                new SolidBrush(Interop.Convert(color)), Interop.Convert(destRect));
        }
示例#5
0
        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();
        }
示例#6
0
        public override void Clear(Geometry.Color color)
        {
            CheckInFrame("Clear");

            mGraphics.Clear(Interop.Convert(color));
        }
示例#7
0
 public override void SetVariable(string name, AgateLib.Geometry.Color color)
 {
     throw new NotImplementedException();
 }