How to get width
and height
of a physical image file?
How to get width
and height
of a physical image file?
You can for some supported formats:
var imagem = Image.FromFile("teste.jpg");
var largura = imagem.Width;
var altura = imagem.Height;
According to documentation you can open BMP, GIF, JPEG, PNG and TIFF files.