コード例 #1
0
ファイル: ShapeDecorator.cs プロジェクト: MacMinhHoang/Paint
        public override void draw(CommonGraphics g)
        {
            int x              = coreShape.info.points[0].X,
                        y      = coreShape.info.points[0].Y,
                        width  = coreShape.info.width,
                        height = coreShape.info.height;

            coreShape.draw(g);
            if (coreShape.GetType() == typeof(Rect))
            {
                g.drawRecShadow(x, y, width, height);
            }
        }