"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
news:2F**********************************@microsof t.com...
| The Image class has both Height and Width properties. Read the
documentation
| here:
|
http://msdn2.microsoft.com/en-us/lib...roperties.aspx
| Peter
| --
| Co-founder, Eggheadcafe.com developer portal:
|
http://www.eggheadcafe.com
| UnBlog:
|
http://petesbloggerama.blogspot.com
|
|
|
|
| "de*********@rediffmail.com" wrote:
|
| how to find the size of image in asp.net
| >
| >
Peter,
Did you notice the following Caution in
http://msdn2.microsoft.com/en-us/library/xs6ftd89.aspx
Classes within the System.Drawing namespace are not supported for use within
a Windows or ASP.NET service. Attempting to use these classes from within
one of these application types may produce unexpected problems, such as
diminished service performance and run-time exceptions.
I would say - don't use this namespace in ASP.NET or any non UI application
(services), it will break sooner than later. Some classes need an pumping
message loop, furthermore you introduce GDI+ into a background process (a
bunch of native code with it's own native thread).
Willy.