I am trying to develop an application using wxwidgets where i can load an image and paint on top of the image - basically like the Whyteboard app: http://code.google.com/p/whyteboard/
However, unlike whyteboard i need to be able to save the drawing in its own image so that i have a png file with the drawing of the user (this is actually a mask for the image)
So what i am trying to create is an annotation tool where user can load an image, draw a freehand shape and save the image of the freehandshape.
I would suspect this needs some sort of layering of panels, but i have not been able to find out how i can do this.
The code i have so far is seen in the attachment What it does is that it creates an artificial image from a numpy array and displays it.
Also
it captures mouse events so that it is possible to draw - The thing is that the mousecapture does not work when the image is loaded…it only works if i disable the part of the code enapsulated in ################################.
How do i change this so that i can drop on a transparent panel instead and store this panel as an image ?
I really hope for help on this one.
Thanks a lot.
annotater.py (2.24 KB)