Accord.Controls.DenavitHartenbergViewer.DenavitHartenbergViewer C# (CSharp) Метод

DenavitHartenbergViewer() публичный Метод

Initializes a new instance of the DenavitHartenbergViewer class.
public DenavitHartenbergViewer ( int width, int height ) : System
width int Width of the drawing window
height int Height of the drawing window
Результат System
        public DenavitHartenbergViewer(int width, int height)
        {
            // Setting the default parameters
            BackColor = Color.Black;
            LinksColor = Color.Green;
            JointsColor = Color.Red;
            BaseJointColor = Color.Gold;
            EndJointColor = Color.Blue;
            Scale = 1;
            JointRadius = 8;

            ArrowsBoundingBox = new Rectangle(10, height - 50 - 10, 50, 50);


            // Creating the bitmap and graphics

            xy = new Bitmap(width, height);
            yz = new Bitmap(width, height);
            xz = new Bitmap(width, height);

            gxy = Graphics.FromImage(xy);
            gyz = Graphics.FromImage(yz);
            gxz = Graphics.FromImage(xz);
        }