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?
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
C
Cong Zhao
said
over 6 years ago
The problem I am facing: the eraser does not erase anything.what can I do?
C
Cong Zhao
said
over 6 years ago
yes,it does not erase anything
G
Gildas Lemarié
said
over 6 years ago
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?
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 Newest FirstGildas 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
Cong Zhao
The problem I am facing: the eraser does not erase anything.what can I do?
Cong Zhao
yes,it does not erase anything
Gildas 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