Pages

Monday, September 2, 2013

Get height and width of a Image file - C#



System.Drawing.Image img = System.Drawing.Image.FromFile(MapPath("a.jpg"));  // get image
 int height = img.Height;       // get height

 int width = img.Width;          // get width

No comments:

Post a Comment