On 11/23/2013 12:38 AM, D M German wrote: > this is a very good idea and easier to implement than a more dedicated > feature, since all it needs is a: > > - a variable or two holding the snap tolerance (they can be part of the > config file) > - a flag for the automatical feature > - When the new size is calculated, the option is checked, if true, check > the tolerance, if true, then resize. > > the question is coordinate do we force: horizontal or vertical?
I'd say: use the geometric mean of the two rescaling factors (sqrt(abs(xratio * yratio)), but that means checking for some annoying side cases to make sure we handle negative rescalings properly. Ultimately what kind of average one uses probably doesn't matter so much. Denis ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ Xournal-devel mailing list Xournal-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xournal-devel