Beispiel #1
0
        public Bitmap DrawIt(AFigure figure, Pen pen)
        {
            _tmpBitmap = (Bitmap)_mainBitmap.Clone();
            _graphics  = Graphics.FromImage(_tmpBitmap); //графикс рисует на временном битмапе
            figure.Painter.DrawFigure(pen, _graphics, figure.GetPath());

            if (figure.IsFilled == true)
            {
                figure.Filler.FillFigure(pen, _graphics, figure.GetPath());
            }

            return(_tmpBitmap);
        }