Feb 14, 2015 Replies: 5 I couldn't find this particular bit of code anywhere and so I figured it out myself. Used it for my Less Note 1.0.0 drawing/sketching/writing app currently waiting for review. Code: Sub DrawPanel_Touch(Action As Int, X As Float, Y As Float) Select Action Case DrawPanel.ACTION_DOWN x2 = X y2 = Y Case DrawPanel.ACTION_MOVE cvsDrawPad.DrawLine(X, Y, x2, y2, penColor, penwidth) x2 = X y2 = Y cvsDrawPad.Refresh End Select End Sub Hope this is helpful. Click to expand...
I couldn't find this particular bit of code anywhere and so I figured it out myself. Used it for my Less Note 1.0.0 drawing/sketching/writing app currently waiting for review. Code: Sub DrawPanel_Touch(Action As Int, X As Float, Y As Float) Select Action Case DrawPanel.ACTION_DOWN x2 = X y2 = Y Case DrawPanel.ACTION_MOVE cvsDrawPad.DrawLine(X, Y, x2, y2, penColor, penwidth) x2 = X y2 = Y cvsDrawPad.Refresh End Select End Sub Hope this is helpful.
freedom2000 Well-Known Member Licensed User Longtime User Feb 20, 2015 #2 Hi, I tried your code but got an error on the refresh method... Code: Error description: Unknown member: refresh Occurred on line: 178 cvsDrawPad.Refresh Word: refresh
Hi, I tried your code but got an error on the refresh method... Code: Error description: Unknown member: refresh Occurred on line: 178 cvsDrawPad.Refresh Word: refresh
Mark Turney Active Member Licensed User Longtime User Feb 20, 2015 #3 Silly question, but iOS or Android? This is specifically for iOS. If Android, you use Invalidate to "redraw" a view.
Silly question, but iOS or Android? This is specifically for iOS. If Android, you use Invalidate to "redraw" a view.
freedom2000 Well-Known Member Licensed User Longtime User Feb 20, 2015 #4 Oups I didn't see that it was a B4i post Sorry
narek adonts Well-Known Member Licensed User Longtime User Mar 9, 2015 #5 Great code, Thank you. But the quality of drawing is not so good. So maybe anyone know a better method for drawing? Narek
Great code, Thank you. But the quality of drawing is not so good. So maybe anyone know a better method for drawing? Narek