コード例 #1
0
ファイル: Form1.cs プロジェクト: selenur/BezierControl
        private void Form1_Load(object sender, System.EventArgs e)
        {
            bezier = new BezierLine(pictureBox1);

            //If you need snapping to grid!
            //bezier.isSnap = true;
            //bezier.snapRes = 20;

            //If you need to change colors
            //bezier.pathPenColor = Color.Black;
            //bezier.anchorBrushColor = Color.Gold;
            //bezier.ctrlBrushColor = Color.Blue;
            //bezier.ctrlPenColor = Color.Green;

            //If you need to change sizes
            //bezier.AnchorSize = 20;
            //bezier.ControlSize = 10;
            //bezier.pathPenWidth = 20;
            //bezier.ctrlPen.Width = 10;

            //Wanna get fast draw?
            //bezier.Smoothing = false;

            bezier.Spawn(40, 40);
        }