Hello, my name is Javier

At first, i think is a good idea to resize the container BoxPane, in order
to execute zoom, with image setted to fill.

But here is a problem: the zoom only sets after mousemove or similar (panel
is a BoxPane containing an image):

                int newWidth=(int)((float) panel.getWidth() * zoomXY);
                int newHeight=(int)((float) panelgetHeight() * zoomXY);
                               
                panel.setPreferredWidth(newWidth);
                panel.setPreferredHeight(newHeight);

Now, the zoom only ends when moving the mouse or keyboard click.

¿Any idea?

Thanks 



--
View this message in context: 
http://apache-pivot-users.399431.n3.nabble.com/Zooming-an-image-tp2528274p4022812.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to