示例#1
0
 private void putText(float fontSize, string text, int x, int y, int w, int h)
 {
     using (var dialog = new LabelBox(width, height, new RectangleF(x, y, w, h)))
     {
         dialog.Background = Color.DarkSlateGray;
         dialog.TextColor = Brushes.White;
         dialog.ChangeFontSize(fontSize);
         dialog.Render(text);
     }
 }