Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #3526

Painting Negative

From "Flo 'Irian' Schaetz" <flo.'irian'.schaetz@THRWHITE.remove-dii-this>
Subject Painting Negative
Message-ID <482f4c7b$0$6506$9b4e6d93@newsspool4.arcor-online.net> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:45 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Hi,

I've got a JLayeredPane, on which I put an "ImagePanel" (which simply
shows an image, nothing special) on layer 0.

Then I want to add another component on layer 1, so that the whole
ImagePanel will be covered by, let's say a black rectangle. Still easy.

But then I want to be able to define Polygons and this polygons should
NOT be drawn on the layer 1 component, so that in this polygons the
ImagePanel below is visible...

So the big question is: How can I fill everything EXCEPT the polygons?

Flo

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | Next | Find similar | Unroll thread


Thread

Painting Negative "Flo 'Irian' Schaetz" <flo.'irian'.schaetz@THRWHITE.remove-dii-this> - 2011-04-27 15:45 +0000

csiph-web