/// <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; }
/// <summary> /// Sets custom configuration for the generation of images. /// </summary> /// <param name="configuration">Custom configuration</param> public TextToImage(TextToImageConfiguration configuration) { _configuration = configuration; }