Hi,
we can add a async drawing task with adding a path and than adding the final path as clone to the task list with:
Well, how we can be sure that the path can be safely reused (and so its clone) or the drawtask is finished?
Can we remove that draw task from the draw task list(= that special one, do we have a reference to the added the task to be found in the list?) assuming that there will be some more draw tasks on that list added?
Thanks.
we can add a async drawing task with adding a path and than adding the final path as clone to the task list with:
B4X:
myPath.Initialize(p1.X, p1.Y)
myPath.LineTo(p2.X,p2.Y).LineTo(p3.X,p3.Y).LineTo(p1.X, p1.Y)
GS.DrawingTasks.Add(X2.MainBC.AsyncDrawPath(myPath.Clone, BrushLineColor, True, 1))
Well, how we can be sure that the path can be safely reused (and so its clone) or the drawtask is finished?
Can we remove that draw task from the draw task list(= that special one, do we have a reference to the added the task to be found in the list?) assuming that there will be some more draw tasks on that list added?
Thanks.