Camfight.Form1.RenderMenu C# (CSharp) Method

RenderMenu() public method

public RenderMenu ( ) : void
return void
        public void RenderMenu()
        {
            //background
            g = Graphics.FromImage(picShow);
            g.DrawImage(background, new Rectangle(0, 0, 640, 480));

            Font myfont = new Font("Arial Rounded MT Bold", 60.0f);
            PointF[] myp = new PointF[3] { new PointF(10, 10), new PointF(10, 90) , new PointF(10,170)};
            //draw text
            for (int i = 0; i < menus.Length; i++)
            {
                if (menuIndex == i)
                {
                    g.DrawString(menus[i], myfont, Brushes.Red, myp[i]);
                }
                else
                {
                    g.DrawString(menus[i], myfont, Brushes.Black, myp[i]);
                }
            }
            gamebox.Image = picShow;
            gamebox.Refresh();
            gamebox.Show();
        }