

My tool creates a GrayMap when the mouse button is pressed, updates it as the mouse is moved then processes and destroys it when the mouse button is released. I need to be able to show the GrayMap, any other kind of bitmap will do, on the canvas and then hide it when not used.
How can I do this? I've been looking around and I can't find any examples in the existing code that does something like it.
I'd really appreciate any help guys.
Thank you.