NesHd.Core.Output.Video.Devices.VideoGdi.DrawText C# (CSharp) Method

DrawText() public method

public DrawText ( string text, int frames ) : void
text string
frames int
return void
        public void DrawText(string text, int frames)
        {
            _textToRender = text;
            _textApperance = frames;
            //This draw is useful when the nes is paused.
            if (_surface != null & !_isRendering)
            {
                if (_textApperance > 0)
                {
                    var graphics = _surface.CreateGraphics();
                    graphics.DrawString(_textToRender, new Font("Tohama", 16, FontStyle.Bold),
                                  new SolidBrush(Color.White), new PointF(30, _surface.Height - 50));
                    _textApperance--;
                }
            }
        }