Re: transparent colors and setXORMode doesn't work together
- From: "Andrey Kuznetsov" <spam0@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 25 Aug 2006 11:36:26 +0200
Which two rectangle? Did you mean the blue Ellipse2D and Rectangle2D?
yup
since it didn't worked I suggest another (a bit tricky) way -
use two BufferedImages:
first (TYPE_INT_ARGB) for image data and second (TYPE_BYTE_GRAY) for alpha.
1) first fill first image with opaque white and second with black.
2) draw your figures to both images
3) copy pixel data from second image to alpha channel of first image (you
will need access to DataBuffer)
Andrey
--
http://uio.imagero.com Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities
.
- References:
- transparent colors and setXORMode doesn't work together
- From: Zaka Ferenc
- Re: transparent colors and setXORMode doesn't work together
- From: Andrey Kuznetsov
- Re: transparent colors and setXORMode doesn't work together
- From: Zaka Ferenc
- transparent colors and setXORMode doesn't work together
- Prev by Date: Re: Set keyboard focus to Applet when it is loaded
- Next by Date: Re: Help with a JPanel
- Previous by thread: Re: transparent colors and setXORMode doesn't work together
- Next by thread: Rendering CAD/GIS Data on a Map Canvas
- Index(es):
Relevant Pages
|