Why using CanvasWidget class to draw lines encounter flicking problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-05-19 8:00 AM
​
Hi, I encounter a problem to continuously display a physiological waveform through the subclass of CanvasWidget class developed. The dots on the line were added to an FIFO buffer in the subclass within the handleTickEvent() function of the view, then invalidate the corresponding rectangular area with InvalidateRec() function, the drawCanvasWidget() virtual function was reimplementation in the subclass to draw the lines with canvas render class.
But as show in the picture, the lines near to the right border of the widget would flicking continuously. Is there a good way to solve the flicking problem ? Suggestion is needed here.
Solved! Go to Solution.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-05-20 1:18 AM
This is usually because you're drawing outside the area you're invalidating, so the flickering is due to a pixel being present in one framebuffer but not the other. Probably your invalidated area is not wide enough.
/Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-05-20 1:18 AM
This is usually because you're drawing outside the area you're invalidating, so the flickering is due to a pixel being present in one framebuffer but not the other. Probably your invalidated area is not wide enough.
/Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-05-23 10:29 PM
Thanks for the reply. My problem is solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-12-12 11:22 AM
Would you have any example code that youd be willing to share? I am currently having the same issue.
