If I write using the pen, then erase by changing pointer type, I have no issue.
The eraser not working could mean that you are trying to erase strokes that have not been recognized yet - that could happen if you are importing a large amount of stroke and try to erase before recognition is over (for optimal strokes import performances, see my answer about using editor.pointerEvents() here).
Do you have the eraser issue if you write just a few strokes directly on your device, in a new part, then try to erase?
Your code seems fine, but don't really understand the problem you are facing: is your problem that the eraser does not erase anything?
Best regards
Gildas
C
Cong Zhao
said
over 6 years ago
yes,it does not erase anything
C
Cong Zhao
said
over 6 years ago
The problem I am facing: the eraser does not erase anything.what can I do?
G
Gildas Lemarié
said
over 6 years ago
Answer
Hello,
If I write using the pen, then erase by changing pointer type, I have no issue.
The eraser not working could mean that you are trying to erase strokes that have not been recognized yet - that could happen if you are importing a large amount of stroke and try to erase before recognition is over (for optimal strokes import performances, see my answer about using editor.pointerEvents() here).
Do you have the eraser issue if you write just a few strokes directly on your device, in a new part, then try to erase?
Cong Zhao
I use it like this,I am sure I add the point type of IPenConfig.ERASER to the engine,but it no use.
PointerType pType = PointerType.PEN;
if (drawingPath.getPaintType() == IPenConfig.ERASER) {
pType = PointerType.ERASER;
}
pointDown(startPoint.x, startPoint.y, startPoint.time, pType, startPoint.p);
pointMove(*****);
pointMove(*****);
……
pointUp(*****);
Hello,
If I write using the pen, then erase by changing pointer type, I have no issue.
The eraser not working could mean that you are trying to erase strokes that have not been recognized yet - that could happen if you are importing a large amount of stroke and try to erase before recognition is over (for optimal strokes import performances, see my answer about using editor.pointerEvents() here).
Do you have the eraser issue if you write just a few strokes directly on your device, in a new part, then try to erase?
best regards
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstGildas Lemarié
Hello,
Your code seems fine, but don't really understand the problem you are facing: is your problem that the eraser does not erase anything?
Best regards
Gildas
Cong Zhao
yes,it does not erase anything
Cong Zhao
The problem I am facing: the eraser does not erase anything.what can I do?
Gildas Lemarié
Hello,
If I write using the pen, then erase by changing pointer type, I have no issue.
The eraser not working could mean that you are trying to erase strokes that have not been recognized yet - that could happen if you are importing a large amount of stroke and try to erase before recognition is over (for optimal strokes import performances, see my answer about using editor.pointerEvents() here).
Do you have the eraser issue if you write just a few strokes directly on your device, in a new part, then try to erase?
best regards