Пример #1
0
 /// <summary>
 /// Creates TextToImage with default configuration
 /// </summary>
 public TextToImage()
 {
     _configuration           = new TextToImageConfiguration();
     _configuration.Font      = new Font("Calibri", 12.0f, FontStyle.Bold);
     _configuration.TextColor = Color.Black;
     _configuration.BackColor = Color.White;
     _configuration.Height    = 64;
     _configuration.Width     = 78;
 }
Пример #2
0
 /// <summary>
 /// Sets custom configuration for the generation of images.
 /// </summary>
 /// <param name="configuration">Custom configuration</param>
 public TextToImage(TextToImageConfiguration configuration)
 {
     _configuration = configuration;
 }