How improve smoothness of DrawingView? #1756
-
Beta Was this translation helpful? Give feedback.
Answered by
VladislavAntonyuk
Mar 16, 2024
Replies: 2 comments 3 replies
-
Granularity sets the smooth level of the drawing line. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
VladislavAntonyuk
-
Closed as answered. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Granularity sets the smooth level of the drawing line.
It adds/removes points to the drawing line.
But the original points collection remains without changes.
As for the image, we draw it as a array of points, and it is not the same as drawing on canvas.
Custom Adapter or DrawingLine are used if you need to adapt your custom Line/Point whatever to our Line. It is a standard Adapter pattern.