- Code: Select all
if(result == "jpg")
{....
to
- Code: Select all
if(result == "jpg" || result == "bmp" || result == "gif" || result == "png" || result == "tiff" || result == "wmf" )
{...
given the system drawing namespace can open / display a number of image formats and is not just limited to jpeg
https://docs.microsoft.com/en-us/dotnet ... work-4.7.2
I personally like png as the file size is so much smaller and therefore can load quicker from my experience.
each to their own.
Good work terry,