AtelierElieScripter.ResourceObjects.EngFontResourceObject.GetChoiceBox C# (CSharp) Method

GetChoiceBox() public method

public GetChoiceBox ( int w ) : Bitmap
w int
return System.Drawing.Bitmap
        public Bitmap GetChoiceBox(int w)
        {
            Bitmap result = new Bitmap(252, 14);

            using (Graphics g = Graphics.FromImage(result))
            {
                g.Clear(Color.White);
                g.DrawRectangle(Pens.Blue, new Rectangle(0, 0, 251, 13));
                g.DrawRectangle(Pens.Red, new Rectangle(0, 0, w + 1, 13));
            }

            return result;
        }