Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Specify RGB Transparency  RSS feed

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Say I have an Image with a bgcolor RGB (0, 0, 255). How can I load this into an Image object specifying that the bgcolor is transparent and it display accordingly?

BTW - I know I could save the image with transparency, but I would rather be able to specify the transparency at runtime.

Thanks.
[ July 31, 2004: Message edited by: Gregg Bolinger ]
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found the following class on google. Works!!

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!