Dear Patrick,

Stroke smoothing would indeed be a useful feature for users of tablet 
devices that suffer either from a low resolution or from poor linux 
device support -- sorry to hear that your HP is among those.  (It hasn't 
been acted on yet because for those of us lucky enough to have a Wacom 
or compatible tablet, the resolution is more than enough and smoothing 
is unnecessary...)

This is mostly an algorithmic problem -- definitely not dependent on any 
particular device, nor complicated in terms of user interface etc.
The basic question is deciding, based on a sequence of input positions, 
how to smooth the polygonal line formed by these -- certainly not by
adding more points to the polygonal line or turning it into a cubic 
spline, but rather to figure out how to recover lost precision caused by
coordinates getting rounded to the nearest pixel.

I believe that jarnal already has something like this in place (because 
it doesn't have access to high resolution input data on wacom tablets, 
so it's a necessary feature for them); looking at the stroke-smoothing 
code in jarnal should give a clue.

Once a suitable algorithm is devised or found somewhere to replace a 
noisy polygonal line by a smoothed one, implementing it in xournal 
should be easy enough -- the question will remain whether this gives 
good results in your particular scenario, and/or for other users of 
tablets that don't send high resolution input data.

Best,
Denis


On 05/10/2016 06:38 AM, Patrick Wurm wrote:
> Dear Denis Auroux,
>
> first off, thank you very much for the masterpiece you created with
> Xournal.
> I love using it.
>
> I saw that stroke smoothing is on the TO DO list. As I desperately need
> this feature, I thought I give it a try and implement it myself.
> But before starting off, could you share your opinion on how much effort
> this will take to implement with me? Would you consider this an easy
> task or is it quite troublesome?
> I just need to make this work for a single device (the HP Spectre X360),
> so the solution does not have to be generally applicable.
>
> Thank you very much again,
> Patrick
>

-- 
Denis Auroux
UC Berkeley, Department of Mathematics
817 Evans Hall, Berkeley CA 94720-3840, USA
aur...@math.berkeley.edu

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Xournal-devel mailing list
Xournal-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xournal-devel

Reply via email to