Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does Java support transparent GIFs?

GIFs Java support transparent
0
Posted

Does Java support transparent GIFs?

0

GIF89a images with a transparent background show up as transparent without further filtering. This has been supported from 1.0 on. Java correctly displays both animated GIFs and transparent GIFs. Even better, you can fill the transparent pixels with a color (so they appear non-transparent in Java). Just pass the fill color explicitly: drawImage(img, x, y, w, h, fillcolor, this); Further, you can filter the pixels of an Image to turn any bits you wish transparent. However, the most you can do is reveal what is underneath the image. You cannot reveal what is underneath the applet (i.e. on the browser itself). By default applets have a plain grey background.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123