HI Phani U can use like this.
<mx:Panel width="40%" height="100%" title="image" verticalAlign="middle" horizontalAlign="center"> <mx:Image id="EImage" width="100%" *maintainAspectRatio="false"* height="100%" /> </mx:Panel> Regards Saravanakumar On Sat, Jan 8, 2011 at 4:12 AM, phani pvr <[email protected]> wrote: > Hi All, > > Here the task is to fetch image from database and show it. > I have taken a Image component and kept in a panel. > The problem is that when i kept the image in the panel , it is now showing > full size. I am not saying that i am not getting full image from the > database. Here the image width and height must be same as panel width and > height.(Simply Image must be resized). > > So if the image is not as large as panel size then resize the image , as > the panel size. The Image must be correctly fit to panel. > > I used the code like this -> > <mx:Panel width="40%" height="100%" title="image" > verticalAlign="middle" horizontalAlign="center"> > <mx:Image id="EImage" width="100%" height="100%" > /> > </mx:Panel> > > Thanks in Advance. > > Regards Phani. > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<flex_india%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > -- Rakshu -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

