示例#1
0
        static Image CreatePredefinedImage()
        {
            Image image = new Image();

            image.AddFigure(new Quad());

            Quad quad = new Quad();

            quad.Move(2, 5);
            image.AddFigure(quad);

            quad = new Quad(new Point(), new Point(3, 0), new Point(7, 7), new Point(0, 3));
            quad.Move(-4, -1);
            image.AddFigure(quad);

            Triangle tris = new Triangle();

            tris.Move(-5, 1);
            image.AddFigure(tris);

            return(image);
        }