Painting Negative



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
.



Relevant Pages

  • Find touching same type polygons
    ... any shapes that overlap was easy using geomAnd. ... However, it looks like i cannot use geomAnd on a derived layer, is ... I suppose i could grab the co-ordinates of all OD polygons (i'm only ... welcome....might be a good way for me to learn the basics of it. ...
    (comp.cad.cadence)
  • Re: Removing invisible surfaces
    ... Because Pro E is a "physical" parametric ... would be to simply set the Perspective View to a Solid Wireframe of your choosing and Lasso the Polygons ... Now, if you don't want those extra polies that you placed in another layer, for what ever reasons, just delete that layer ...
    (comp.graphics.apps.lightwave)
  • How to select polygons in a shape layer by polygons of a second shape layer?
    ... I am trying to make a selection of polygons of one layer that are ... which cuts off the supernatant parts of the polygons. ... MapWindow, SAGA, Kosmos, gvSIG, GDV Spatial Commander ... ...
    (comp.infosystems.gis)
  • Subselects with Relative tables
    ... I have a layer created in the ArcMap displaying some polygons and ... some extra data about these polygons. ... These table was set as relate with the layer. ... select I can create a sub select between the layer and these table. ...
    (comp.infosystems.gis)