This project is read-only.

Strategy for erasing part of an image?

Dec 6, 2010 at 7:31 AM

I'm trying to figure out how to implement an eraser in a phone 7 application I'm writing. Should I try to map the touch location to pixels in the image and make pixels around that point transparent? 

Dec 6, 2010 at 7:37 AM
Exactly, but I recommend to use WritableBitmap for this, because it is
much faster.

The right way would be:

Stream -> ImageTools.ExtendedImage -> (WritableBitmap ... Editing ...
WriteableBitmap) -> ImageTools.ExtendedImage -> Stream

Your way is absolutly the correct way, you can have a look to
WritableBitmapEx Project hier on Codeplex.