Search in This Blog

Get height width of image in C#

Get height width of image in C#


You can simply get image's height width in C# with only one line of code:
the code is :

int h = System.Drawing.Image.FromFile("ImageNameWithPath").Height;
int w = System.Drawing.Image.FromFile("ImageNameWithPath").Width;
Previous
Next Post »