Example #1
0
        static void AddGrayTriangle(vgCore.Document activeDocument)
        {
            var activePage = activeDocument.ActivePage;
            var rectangle  = activePage.ActiveLayer.CreatePolygon(100, 200, 200, 100, 3);

            vgCore.Color fillColor = new vgCore.Color();
            fillColor.HexValue          = "#CDCDCD";
            rectangle.Fill.UniformColor = fillColor;
        }
Example #2
0
        static void AddGrayCircle(vgCore.Document activeDocument)
        {
            int radius = 1000;

            var activePage = activeDocument.ActivePage;
            var rectangle  = activePage.ActiveLayer.CreateRectangle(10, 10, 1000, 1000, radius, radius, radius, radius);

            vgCore.Color fillColor = new vgCore.Color();
            fillColor.HexValue          = "#CDCDCD";
            rectangle.Fill.UniformColor = fillColor;
        }