Yes, when I try that the images don't scale into my 160x120 box. The 
images are a wide variety of sizes (e.g. 300x700, 1280x1024, 150x50) 
they are really inconsistent in proportion. When I take off the image 
width/height I get the full image size and not a scaled 160x120 
version.

-Dan


--- In flexcoders@yahoogroups.com, "oneworld95" <oneworl...@...> 
wrote:
>
> Have you tried taking the width/height off of the component and see
> how it handles the images of varying sizes?
> 
> - Alex C
> 
> --- In flexcoders@yahoogroups.com, "byte.sensei" <byte.sensei@> 
wrote:
> >
> > I have an app that loads several images into mx:Image tags with 
> > scaleContent=true and width=160 / height=120. The problem is not 
all of 
> > my images have these proportions, and for odd sized images they 
end up 
> > being loaded into the upper left hand corner instead of centered 
in the 
> > restricting image box.
> > 
> > All I'm trying to do is have a box 160x120 pixels, then load in 
images 
> > of various sizes dynamically and have them 1) scale to fit within 
this 
> > box, and 2) render centered vertically/horizontally in this box. 
Is 
> > there any way I can do this not knowing the actual image sizes 
(and 
> > using images of different proportions)?
> > 
> > Thanks!
> >
>


Reply via email to