public GridBuilder2(Page page, float originOffset) { this.Page = page; this.Origin = new PointF(this.Page.Width / 2, originOffset); this.Root = new SvgSvgElement( GetSvgLength(this.Page.Width), GetSvgLength(this.Page.Height)); }
private static void CreateTicTacToeGrid() { Page page = new Page(275, 215, SvgLengthType.SVG_LENGTHTYPE_MM); GridBuilder2 gridBuilder = new GridBuilder2(page, 15); gridBuilder.AddSquares(75, 30, 30, 3, 3); gridBuilder.AddAlignmentLines(); gridBuilder.Save("TicTacToe.svg"); }
private static void CreateCameraCalibrationGrid() { Page page = new Page(275, 215, SvgLengthType.SVG_LENGTHTYPE_MM); GridBuilder2 gridBuilder = new GridBuilder2(page, 15); gridBuilder.AddSquares(75, 0, 30, 7, 3); gridBuilder.AddAlignmentLines(); gridBuilder.Save("Squares.svg"); }
private static void CreateRobotCalibrationGrid() { Page page = new Page(700, 350, SvgLengthType.SVG_LENGTHTYPE_MM); GridBuilder gridBuilder = new GridBuilder(page, 15); gridBuilder.AddHorizontalLines(5); gridBuilder.AddVerticalLines(5); gridBuilder.AddAngleLines(1, 50); gridBuilder.AddCircles(5); gridBuilder.Save("Grid.svg"); }