Click to See Complete Forum and Search --> : Image/Image Button Controls


leahayes00
01-19-2004, 01:08 PM
Hi,

I'm using VB.NET with ASP.NET.

When selecting an image (within the code) using: MyImage.ImageURL = "test.jpg", the image is stretched within the image control, is there a way to make the image control automatically change to the images size?

And another image related question, how can you obtain the images dimensions?

Regards,
Lea Hayes

PeOfEo
01-19-2004, 08:16 PM
if the image is already saved you can just get that from paint shop pro or adobe or another image editor, but I am not sure how to do it with raw code (I bet it is possible, I just don't know how). You can just modify the width of the element, and I bet you can do something like stretch="false" I know in vb6 you can do that very same line of code.