When you have access to the image's pixel data (which you can through a 
BufferedImage) you could alter the pixel values like this to fade between two:

for(int i=0; i<width; i++)
{
        for(int j=0; j<height; j++)
        {
                int sc = sourceBuffer[i + j * width];
                int dc = destBuffer[i + j * width];
                destBuffer[i + j * width] = blendColor(sc, dc, fadeAmount);
        }
}

public int blendColor(int c1, int c2)
{
    return ((c1 & 0x00fefeff) >> 1) + ((c2 & 0x00fefeff) >> 1);
}
[Message sent by forum member 'bitshit' (bitshit)]

http://forums.java.net/jive/thread.jspa?messageID=253567

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to