pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger L. Whitcomb" <Roger.Whitc...@actian.com>
Subject RE: Zooming an image
Date Thu, 02 Jan 2014 02:58:38 GMT
Could you post more code?  Where are you calling the code you have shown us?  It sounds to
me like you would need a flag set on key down or mouse down, and cleared on key up or mouse
up, and then only do the zoom as you have shown while the flag is set.  But, without a bit
more of an idea of how you have structured things, it is a little hard to tell.


-----Original Message-----
From: JLEIngenieros [mailto:jleingenieros@gmail.com] 
Sent: Monday, December 23, 2013 4:48 PM
To: user@pivot.apache.org
Subject: Re: Zooming an image

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);

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

┬┐Any idea?


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.

View raw message