Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make an image transparent?

Status
Not open for further replies.

SashaBuilder3

Programmer
Jan 13, 2002
131
CA
Hi everybody,


I need to build a complex chart, for this I want at first to create some painted area and then to put a map over it. The map is an image, which consists basically of black lines for state borders, main rivers and lakes on the white background. What I need is to put just these black lines, not the white background which will kill previously painted area.

Can anyone give an idea?


Thanks,

Alexandre
 
Have you tried setting the background color of the map to anything with an 'alpha' factor (poacity ?) of zero.

image.setBackground(new Color(0, 0, 0, 0));
 
poacity? LOL darn fingers i kant trust em any farther than i can throw em! LOL -There are only 10 types of people in the world, those who understand binary and those who don't-

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top