Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Watermark effect
Watermark effect [message #444485] Wed, 13 October 2004 17:51
Eclipse UserFriend
Originally posted by: emmanuel_proulx.hotmail.com

Dear SWT experts,

I'm trying to add a watermark graphic into my diagram. I can load the
Image and add it to a diagram as an ImageFigure, but the figure selection
is wrong; new Figures show up "under" the watermark. I'd like to put this
"below" all other figures.

Image i = FlareImages.logo;
ImageFigure logo = new ImageFigure(i);
diagramFigure.add(logo,new Rectangle(5, 5,
i.getImageData().width,
i.getImageData().height);

I'm thinking the editor may paint the Image below the diagram, on a
different layer. But I don't know how to do it.

Can you give me a hint?

Emmanuel Proulx
Previous Topic:How to capture External Key Press Events outside application window
Next Topic:How to get Y-Location of a TreeItem
Goto Forum:
  


Current Time: Mon Oct 26 05:00:22 GMT 2020

Powered by FUDForum. Page generated in 0.05812 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top