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

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

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

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