Image alignment problem

S

Samuel

Hi

I have the following (common) situation:

I have to present different images that are not square within a square and
fixed size box /cell.
Setting the alignment is not enough because I have to set at runtime the
size of the image control based on the size of the image (the alignment of
the image control is set) but the image is just a file on the internet so
how can I give this consistent look without actually modifying the images by
making them square by adding white etc on the sides.


Thank you in advance,
Samuel
 
G

Guest

Hi

I have the following (common) situation:

I have to present different images that are not square within a square and
fixed size box /cell.
Setting the alignment is not enough because I have to set at runtime the
size of the image control based on the size of the image (the alignment of
the image control is set) but the image is just a file on the internet so
how can I give this consistent look without actually modifying the images by
making them square by adding white etc on the sides.

Thank you in advance,
Samuel

Hi Samuel,

If I were you I would do HTTPHandler to resize images on the fly
similar to the following example

http://blog.lavablast.com/post/2008/07/Image-Thumbnail-Caching.aspx
http://blog.lavablast.com/ImageCacheManager/default.aspx (demo)

Hope this helps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top