468,765 Members | 950 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,765 developers. It's quick & easy.

Information of an image like height, width

How to get the information(like height, width) of an
image to be uploaded?
Nov 15 '05 #1
1 2371
Pums,

If you have an instance of a class that derives from the Image class,
you can use the Height and Width properties of that instance to get the
height and width. You mentioned "upload". I assume you are uploading
images to an ASP.NET application. In this case, you have to upload the
image. From the uploaded bytes, you can get an Image by calling the static
FromStream method on the Image class, using a MemoryStream instance to wrap
the bytes. Once you have the instance, use the Height and Width properties
as you wish.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Pums" <an*******@discussions.microsoft.com> wrote in message
news:07****************************@phx.gbl...
How to get the information(like height, width) of an
image to be uploaded?

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Tjerk | last post: by
9 posts views Thread by Karl Burrows | last post: by
5 posts views Thread by Csaba Gabor | last post: by
6 posts views Thread by abdullah1983 | last post: by
4 posts views Thread by tshad | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.