Hi Everyone,
I've this problem: I've create an application that (among all the things it does) catch a signature manually drawn on the display. All works great but the problem is the resolution: if I draw on a Samsung S2 (480 x 800 pixel) the signature is smooth and rounded even if drawn fast . With the same application on Huawei P8 lite (720 x 1280 pixel) the same kind of signature is very "isteric" and it is visible that the signature is composed by a bunch of line, but if the same signature is drawned slowly than is smooth and rounded as like on S2. It seem like that P8 catch more slowly the movement on the display making bigger the gap from a point to another. How can reduce the time between the catch of the movement from point to point?
Here is the code that I've used to catch the movements on the canvas (x1,x2,xo,y1,y2,yo are globals variables)
Thanks for any suggestions.
I've this problem: I've create an application that (among all the things it does) catch a signature manually drawn on the display. All works great but the problem is the resolution: if I draw on a Samsung S2 (480 x 800 pixel) the signature is smooth and rounded even if drawn fast . With the same application on Huawei P8 lite (720 x 1280 pixel) the same kind of signature is very "isteric" and it is visible that the signature is composed by a bunch of line, but if the same signature is drawned slowly than is smooth and rounded as like on S2. It seem like that P8 catch more slowly the movement on the display making bigger the gap from a point to another. How can reduce the time between the catch of the movement from point to point?
Here is the code that I've used to catch the movements on the canvas (x1,x2,xo,y1,y2,yo are globals variables)
B4X:
Sub panCanvas_Touch (Action As Int, X As Float, Y As Float)
Select Case Action
Case panCanvas.ACTION_DOWN
x1 = X
y1 = Y
x2 = X
y2 = Y
xo = X
yo = Y
Case panCanvas.ACTION_MOVE
x2 = X
y2 = Y
cvsFirma.DrawLine(x1,y1 ,x2,y2 ,Colors.Black,2dip)
x1 = X
y1 = Y
Case panCanvas.ACTION_UP
If xo = x And yo = y Then
cvsFirma.DrawCircle( X,Y, 2dip,Colors.Black,True,2dip)
End If
End Select
panCanvas.Invalidate
End Sub