I want to check if images in a directory are of type png but with extension .bmp
. The following determines whether it is a .bmp
extension
string x = Path.GetExtension(file);
From this we establish that its extension is .bmp
. Now the problem comes in checking if it is in a png format. I am stuck on this part.
The reason why I am doing this is because I want to have my images transparent and .bmp images don't work so well with that. Thank you!