C# Save image using SaveFileDialog

How can i save an image using SaveFileDialog, without including System.Drawing? I’ve tried using Image.Save from System.Drawing, but it gives a format error and it breaks everything where i use different Image class SaveFileDialog sfd = new SaveFileDialog(); sfd.Filter = “Vse podprte tipe slik|*.jpg;*.jpeg;*.png|” + “JPEG (*.jpg;*.jpeg)|*.jpg;*.jpeg|” + “Portable Network Graphic (*.png)|*.png”; sfd.Title = “Shrani…

Details

How can I use a list in a for in range loop?

consonant_letters = [‘B’, ‘C’, ‘D’, ‘F’, ‘G’, ‘H’, ‘J’, ‘K’, ‘L’, ‘M’, ‘N’, ‘P’, ‘Q’, ‘R’, ‘S’, ‘T’, ‘V’, ‘X’, ‘Z’] for x in range(9999): for y in range(consonant_letters): for z in range(consonant_letters): for a in range(consonant_letters): print(f'{x} {y} {z} {a}’) *And what I get is this TypeError: ‘list’ object cannot be interpreted as an…

Details