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;
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;
0 comments:
Post a Comment