Sorry when I said existing figures, I meant the implementation of SWT
Paint example. So SWT Paint example has figures and tools defined and you
can click on a rectangle tool (for example) and draw rectangles.
What I add is importing and displaying an image. And now I simply want to
be able to draw a (non filled) rectangle on that image.
However, when I draw a for example red-filled rectangle and over it a
non-filled one, the second one is transparent (non-filled) and you can see
the red (first) one through it.
But, when I display an image and then draw a non-filled rectangle over it,
that rectangle is filled with white and it covers the image.
I am not sure what I am doing wrong. Any hint would be appreciated.