Image alignment problem

  • Thread starter Thread starter Samuel
  • Start date Start date
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
 
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 imagesby
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
 
Back
Top