I have a WriteableBitmap object which I load a .jpg image into and show it in an image control. Now I would like to be able to let the user draw on that image with a little half-transparent brush.
Right now I am handling the MouseDown and MouseMove events to draw a little half-transparent circle on every change of the mouse's coordinates over the image:
MyWriteableBitmap.FillEllipseCentered(x, y, 1, 1, myColor);
That clearly does not refresh fast enough though - leaving me with a set of dots (unless the user moves the mouse very very slow).
My temporary solution is to just draw lines from one point to another and update the two points on every MouseMove event - the curve is consistent that way but is only one-pixel wide, which doesn't look great.
What is the best approach for me to tackle that problem?