Information of an image like height, width

  • Thread starter Thread starter Pums
  • Start date Start date
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.
 
Back
Top