Question : Graphics2D.clearPolygon(Polygon p) ?


The problem I have right now is that I've got an image which has some transparent pixels and some opaque ones.
I would like to remove some of the opaque pixels in the same of a polygon that I have generated.
The problem is that java only has API for clear rectangles.
The way I am solving this problem right now is just by drawing the polygon as the color behind the image, but this does not always work because the background changes.
Doing some hacking around with the API is not a problem if it solves my problem, just so long as it is not terribly inefficient.

I haven't been able to find anything on the subject so far.


Answer : Graphics2D.clearPolygon(Polygon p) ?

try smartdraw

I use it to create floorplans
Random Solutions  
programming4us programming4us