PC Review


Reply
Thread Tools Rate Thread

display a cropped image

 
 
Bill Brehm
Guest
Posts: n/a
 
      27th Jul 2006
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


 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      27th Jul 2006
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.


"Bill Brehm >" <<don't want any spam> wrote in message
news:(E-Mail Removed)...
>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
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
compressing cropped image =?Utf-8?B?Y29sb3JhZGlv?= Microsoft Word Document Management 2 25th Sep 2007 08:16 PM
compressing cropped image =?Utf-8?B?Y29sb3JhZGlv?= Microsoft Word Document Management 0 25th Sep 2007 06:12 PM
disabling the dragging of cropped image to the address bar ravishankar Maduri Microsoft Dot NET 0 2nd Aug 2007 04:02 PM
Cropped Video Image. =?Utf-8?B?ZGlmZWdv?= Windows XP Video 1 7th Nov 2004 10:43 PM
how to SAVE a CROPPED thumbnail of an uploaded image Matt Brelje Microsoft Dot NET 0 18th May 2004 11:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:24 PM.