Hi Dmitri,

>   you can do this, for example, this way:
>   BufferedImage bi = ..; // your image
>   BufferedImage grayBi = new BufferedImage(bi.getWidth(), getHeight(),
>                                            BufferedImage.TYPE_BYTE_GRAY);
>   Graphics g = grayBi.getGraphics();
>   g.drawImage(bi, 0, 0, null);
>
>   Now you have a grayscale version of the bi image in the grayBi.

    Thanks for your help.
    It works fine but it has a little "problem". If my image is a
transparent GIF it will have a black background as result.
    Is there any way to set transparency color ? I only found get methods
for transparencies....

    Thanks.

    Best regards,
        Nuno

===========================================================================
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