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

            mGraphics.FillRectangle(new SolidBrush(Interop.Convert(color)),
                                    Interop.Convert(rect));
        }
Example #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)));
        }
Example #3
0
        public override void FillRect(Geometry.RectangleF rect, Geometry.Gradient color)
        {
            CheckInFrame("FillRect");

            FillRect(rect, color.AverageColor);
        }