Santosh, you may also find the ScaleDecorator to be useful as a means for abstracting out the notion of scale from the ImageView itself. You can do this to any (I believe) component via something like:
float scale = x; // where x = 1 means no change ScaleDecorator sd = new ScaleDecorator(); component.getDecorators().addDecorator(sd); I've found that, after applying the Decorator, doing sd.setScale(y) will change the presentation of the ImageView more or less immediately. Though if you want to resize the *image files* (and not the image views) such that the original files have a smaller footprint in memory, you will need an image manipulation library, which (I believe) goes beyond the scope of Pivot. Warning: I'm relatively new to Pivot =D Cheers, --E On Tue, Jul 30, 2013 at 11:06 AM, Roger L. Whitcomb < [email protected]> wrote: > Hi Santosh, > You can always set the "width" and/or "height" of the ImageView > itself and it will automatically resize the image to that/those > dimensions. Usually you can just set one or the other and it will be > resized proportionally. > > HTH, > ~Roger Whitcomb > > -----Original Message----- > From: Santosh [mailto:[email protected]] > Sent: Tuesday, July 30, 2013 4:27 AM > To: [email protected] > Subject: Re: How resize an image in pivot > > Hi Chris, > Iam using File Browsing option of Pivot, in my Application to select an > image file and then to set the selected image file to ImageView. And i > was able to do this. Now iam saving this image file and want to display > it in a TableView cell. So i want to reduce the size of the Image before > adding to it a tableview cell. Is there any direct way of changing the > Image file so that i can add this to tableview cell. > > > > ----- > santosh pavan raju > -- > View this message in context: > http://apache-pivot-users.399431.n3.nabble.com/How-resize-an-image-in-pi > vot-tp4022657p4022659.html > Sent from the Apache Pivot - Users mailing list archive at Nabble.com. >
