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?