ksnip / kImageAnnotator

Tool for annotating images
GNU Lesser General Public License v3.0
83 stars 41 forks source link

Add Eraser tool #95

Open Maralai opened 4 years ago

Maralai commented 4 years ago

Please consider adding support for erasing penned lines.

[ ] Erase by pixels with size adjustability. [ ] Erase by strokes [ ] Support erasing with a stylus button as well.

DamirPorobic commented 4 years ago

What do you mean with penned lines? In general deleting or erasing individual pixel is not going to be supported, the only thing that we can delete are object, like deleting an arrow, line, sticker, .... The reason for that is that we don't work on individual pixels like Paint in MS Windows but we rather work on vector objects, like Inkscape. Such a feature would require changing the way the Annotation work and would take away the ability to move object around and change the Z Value.

Maralai commented 4 years ago

You can not split or trim the vector objects?

Please consider erasing the strokes with a tool. This tool should use the same function as drawing with the pen but any strokes that intersect it's path should be erased. Consider then allowing for any pointer (xinput) with eraser in it's name to automatically toggle the tool.

DamirPorobic commented 4 years ago

Can you elaborate on your last sentence? I'm not sure what you expect there.

Maralai commented 4 years ago

There is a way to distinguish between the cursor from a stylus tip and when the error tool is being used using the name of the device shown in xinput on Linux for example. I am suggesting that an event be raised when input whose name contains"Eraser" toggles the tool automatically for the cursor move events registered on the screen while that type of cursor is the one registering those events.