Possible Duplicate:
Get the resolution of a jpeg image using C# and the .NET Environment?
In a batch image downloader I am coding, I use a WebClient (DownloadFile) to save images from given urls. Is there an easy way to get the resolution of these images? If the WebClient cannot, how can i get the resolution after the file is saved?
If you save the image after downloading it from the WebClient, you can use the following:
This will give you the width x height of the image, for example, 1920×1080.