2019-02-18 08:45 PM
Hi,How can i draw a line on my display touchscreen with my finger.I have used Graph widget before,but the coordinate point must be monotone increasing。Could i use the method for QrCode,and could you write an example for this。Thanks�?�?�?
Best regards
2019-02-18 11:55 PM
Hi @Jack li,
You could create a custom widget (Like the QrCode) that hooks into the ::draw() method and simply draw into the framebuffer at the relative location of your finger (hook into ::handleClickEvent() and ::handleDragEvent() to get these coordinates. You will not have the antialiasing that the Graph gives you, but you have more freedom here.
Does that make sense?
Best regards,
Martin
2019-02-19 01:01 AM
:beaming_face_with_smiling_eyes:
2019-02-21 11:17 PM
Hello,@Martin KJELDSEN
Thanks for you help ,but i can understand that .First i can't understand how to use ::draw() method ,maybe on touchgfx.com have Tutorial,l can't find it.so could you tell me through the entire process step by step or how can i do this .
Thank you very much !!!!
Best regards
Jack li