Example #1
0
        private void updateText()
        {
            if (texture == null)
            {
                return;
            }

            texture.Clear(backgroundColor);
            if (shadow)
            {
                texture.DrawString(text, font, new SolidBrush(Color.Black), new PointF(1, 1));
            }
            TextSize = texture.DrawString(text, font, new SolidBrush(textColor), PointF.Empty);
        }
Example #2
0
 public void Clear(Color color)
 {
     texture.Clear(color);
 }