Re: transparency in PNG images
- From: Daniel Pitts <newsgroup.spamfilter@xxxxxxxxxxxxxxxxxxx>
- Date: Sun, 09 Jan 2011 16:07:13 -0800
On 1/9/2011 7:34 AM, Roedy Green wrote:
On Sun, 09 Jan 2011 02:49:44 -0500, "John B. Matthews"Or refactor your rendering code to render to a BufferedImage, and have your paintComponent method just paint that image.
<nospam@xxxxxxxxxxxxxx> wrote, quoted or indirectly quoted someone who
said :
  g2d.setComposite(AlphaComposite.Clear);
  g2d.fillRect(x, y, w, h);
that behaves similarly to clearRect. It works on the PNG but leaves a
black region on the screen version.
I think I am going to have to figure out how to use a clip region to
protect the area from being "damaged" in the first place.
I will do a little essay on the problem. What is the default
AlphaComponsite method?
--
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>
.
- Follow-Ups:
- Re: transparency in PNG images
- From: Roedy Green
- Re: transparency in PNG images
- References:
- transparency in PNG images
- From: Roedy Green
- Re: transparency in PNG images
- From: John B. Matthews
- Re: transparency in PNG images
- From: Roedy Green
- transparency in PNG images
- Prev by Date: Re: transparency in PNG images
- Next by Date: Re: transparency in PNG images
- Previous by thread: Re: transparency in PNG images
- Next by thread: Re: transparency in PNG images
- Index(es):