Original Post
Alpha blending in java anyone? I can't find any helpful resources on the web. Searched a few forums as well. I basically just need to tell it to make a certain RGB value transparent.
Graphics2D g2d = (Graphics2D)g;Composite composite = g2d.getComposite();// 0.5f is alphaAlphaComposite alphaComposite = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.5f); g2d.setComposite(alphaComposite);This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more