Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: image size ?


Message #1 by "Nick" <nick@g...> on Fri, 30 Aug 2002 15:48:54 +0700
how to know the width and height of the image ?
sampel i have image in c:\photo1.jpg that have width=100 and height = 160 
how i get that width and height using asp.net ??


Message #2 by "Norman Beresford" <n.beresford@a...> on Fri, 30 Aug 2002 10:10:37 +0100
Hi Nick

You can load the image into a System.Drawing.Bitmap.  This then gives access
to the width and height using the Width and Height properties.

Norman


  Return to Index