I have this code, how can I allow it to accept all typical image formats? PNG, JPEG, JPG, GIF?
Here\'s what I have so far:
public void EncryptFile()
For images, you could get the available codecs from GDI (System.Drawing) and build your list from that with a little work. This would be the most flexible way to go.
ImageCodecInfo[] codecs = ImageCodecInfo.GetImageEncoders();