display a cropped image

  • Thread starter Thread starter Bill Brehm
  • Start date Start date
B

Bill Brehm

I want to display a section of an image without modifying the image. I know
I can give a height and width to an <img> object, but that scales the entire
image. Is there any way I could, for example, display the sub-image from
100, 200 to 199, 299 in a 100 x 100 image area on the htmp page?

Thanks
 
No. A web browser does not have functionality for doing anything other than
resizing images. It cannot crop them, rotate them, or change any of their
characteristics other than height and width. About the closest you could
come to doing so would be to cover the parts of the images you want to crop,
by using floating divs. These are div elements that are absolutely
positioned at a z-level above the page. However, I believe that would be a
shoddy solution to a problem that could easily be remedied by making a
cropped copy of the image.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Magician

A man, a plan, a canal.
a palindrome that has gone to s**t.
 
Back
Top