Exemplo n.º 1
0
 private void CreateImageAndSave(IEnumerable <Tag> tags)
 {
     using (var bitmap = _visualizer.GetCloudVisualization(tags.ToList()))
     {
         var name    = Path.GetFileName(_options.File);
         var imgName = Path.ChangeExtension(name, _imageFormatDenotation[_imageFormat]);
         _writer.Write($"Your image located at:  {new FileInfo(imgName).FullName}");
         bitmap.Save(imgName, _imageFormat);
     }
 }