Dot Net Finger
Pages
Home
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment