|Draw2D Transparency [message #233493]
||Wed, 25 April 2007 21:53
Originally posted by: asanh.ll.mit.edu|
I am implementing an RCP application. In an implementation of the RCP
ViewPart, I create a Canvas. I then draw an image on the Canvas (JPEG
loaded from an external file.). I would like to use a Draw2D Ellipse to
highlight a part of the image. So I tried to do the following after the
image is drawn in createPartControl():
LightweightSystem lws = new LightweightSystem(imageCanvas);
IFigure panel = new Figure();
Shape ellipse = new Ellipse();
When I test the code, I get an area of grey with an ellipse, but I cannot
see my image. When I scroll the window, however, I can see my image
flickering beneath the area of grey with the ellipse. So the pieces are
all there. The Draw2D piece is just not transparent so that the image can
also be seen.
As I am new to RCP and SWT, I would appreciate some guidance as to what I
am doing incorrectly and what I should be doing instead.
Many thanks for your help.
Powered by FUDForum
. Page generated in 0.01755 seconds