By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,376 Members | 1,599 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,376 IT Pros & Developers. It's quick & easy.

zoom image

P: n/a
In MS Access image controls there's a property setting for "Size Mode" -->
Clip, Zoom or Stretch. I don't see any similar property in an asp image
control. When I have an image on a page, it seems to Stretch no matter what.
If an image is displayed that has different proportions than the image
control itself, the image is distorted. I need a "Zoom" setting (not to zoom
in and out). How can this be done?

Thanks,

Keith
Jun 9 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
the img control in .net, just generates an image tag. all display features
are done by the browser. there are CSS styles for sizing and clipping. your
code will have to get the image size and clac the zoom and clip you want.

the most common approach is an aspx page that display the image the correct
size by doing transformation on the server rather than the client.

-- bruce (sqlwork.com)

"Keith G Hicks" <kr*@comcast.net> wrote in message
news:Oa**************@TK2MSFTNGP05.phx.gbl...
In MS Access image controls there's a property setting for "Size Mode" -->
Clip, Zoom or Stretch. I don't see any similar property in an asp image
control. When I have an image on a page, it seems to Stretch no matter
what.
If an image is displayed that has different proportions than the image
control itself, the image is distorted. I need a "Zoom" setting (not to
zoom
in and out). How can this be done?

Thanks,

Keith

Jun 9 '06 #2

P: n/a
ok. Thanks for the info. I found this:
http://www.codeproject.com/csharp/imageresize.asp Seems like that would do
the trick.

"bruce barker (sqlwork.com)" <b_*************************@sqlwork.com> wrote
in message news:e3**************@TK2MSFTNGP04.phx.gbl...
the img control in .net, just generates an image tag. all display features
are done by the browser. there are CSS styles for sizing and clipping. your
code will have to get the image size and clac the zoom and clip you want.

the most common approach is an aspx page that display the image the correct
size by doing transformation on the server rather than the client.

-- bruce (sqlwork.com)

"Keith G Hicks" <kr*@comcast.net> wrote in message
news:Oa**************@TK2MSFTNGP05.phx.gbl...
In MS Access image controls there's a property setting for "Size Mode" -->
Clip, Zoom or Stretch. I don't see any similar property in an asp image
control. When I have an image on a page, it seems to Stretch no matter
what.
If an image is displayed that has different proportions than the image
control itself, the image is distorted. I need a "Zoom" setting (not to
zoom
in and out). How can this be done?

Thanks,

Keith


Jun 9 '06 #3

P: n/a
the browser only supports setting the size and width of an image, then it
scales it to the new size. if you want a proportional resize, then calc
proportional sizes. you can use the drawng namespace to load an image and
get its size, so you can recalc. IE has a non-compliant zoom style you can
use also.

-- bruce (sqlwork.com)
"Keith G Hicks" <kr*@comcast.netwrote in message
news:Oa**************@TK2MSFTNGP05.phx.gbl...
In MS Access image controls there's a property setting for "Size Mode" -->
Clip, Zoom or Stretch. I don't see any similar property in an asp image
control. When I have an image on a page, it seems to Stretch no matter
what.
If an image is displayed that has different proportions than the image
control itself, the image is distorted. I need a "Zoom" setting (not to
zoom
in and out). How can this be done?

Thanks,

Keith


Aug 23 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.