determining an image file height and width

  • Thread starter Thread starter Irishmaninusa
  • Start date Start date
I

Irishmaninusa

Hello,

I was wondering if this is possible to do in asp.net (using vb.net code) to
determine what the height of an image and the width of it. So that when an
image is added to a page it will automatically give it the correct
dimensions in the page. Without a designer having to the edit the page
everytime they change the size of the image. Thanks.

JD
 
Found what I was looking for....thanks

Yes, it is possible. Check out the GDI+ features in the System.Drawing namespace for more info.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top