BoulderBum
Programmer
Lets say I have an image that's 200x150 pixels, and I want to fit it into, say, a table cell that is 100x100. Is there a static way to confine the image to the cell's size (keeping the proportions of the image) without hard-coding pixel sizes?
In the above case (where I'm looking to fit the 200x150 image into the 100x100 space), I'd need a way to automatically shrink the image to 100x75.
The reason I can't hard-code the shrunk image size beforehand is because I don't know the size until runtime.
[COLOR=blue gainsboro]
Get a FREE iPod by helping me get mine! Click my referrer link:
More about the company and deal:
[/color]
In the above case (where I'm looking to fit the 200x150 image into the 100x100 space), I'd need a way to automatically shrink the image to 100x75.
The reason I can't hard-code the shrunk image size beforehand is because I don't know the size until runtime.
[COLOR=blue gainsboro]
Get a FREE iPod by helping me get mine! Click my referrer link:
More about the company and deal:
[/color]