For smart Primates & ROBOTS (oh and ALIENS ).

Blogroll

Friday, September 19, 2014

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;
Share:

0 comments:

Post a Comment

How to make center align child div

 How to make center align child div?   Suppose you have 2 Div tag. And want the make inner tag center <div id="d1">      ...

Ads Inside Post

Powered by Blogger.

Arsip

Blog Archive