Java 2D - calculating transparent colors

I have a background color (say white), a foreground color (say black), and a transparency (say 90%, alfa=0.1).Is there a java method that calculates the RGB of the gray color that should be displayed to represent the transparency?TIA, kuvera
[262 byte] By [kulkuria] at [2007-11-26 23:21:34]
# 1

Get the Red, Green, and Blue values from the first color and multiply them by 0.9. Get the Red, Green, and Blue values from the second color and multiply them by 0.1. Add the resulting values together. Is there reason you are doing this manually?

Color grayishColor = new Color(255, 255, 255, 230);

CaptainMorgan08a at 2007-7-10 14:25:59 > top of Java-index,Security,Cryptography...
# 2
The reason I need to do this is that I also have to add the graphics to a PDF file. And transparency affects the colors of the lines drawn subsequently on top of such a gray-filled area. Those lines should be black, instead they are also gray.
kulkuria at 2007-7-10 14:25:59 > top of Java-index,Security,Cryptography...