1

I've started to make a painting program in WPF using an inkpresenter, but I'm starting to doubt the approach. I am implementing the eraser and realise if I delete parts of the strokes the precision will be really bad. I do not want to delete a whole part of the stroke if someone just wants to delete one pixel of a stroke with width 10.

Do I keep the inkPresenter and just render to a writeablebitmap whenever I need pixels, and then continue with a new inkPresenter on top of that bitmap? Or is there a better approach to making a painting program in wpf? Should I forget about wpf and go back to gdi+ ? I'm liking the performance but not having direct access to pixels is really bugging me.

4

0 回答 0