Skip to main content
gamedev.net
🔒 Locked

[java] Rendering a transparent image

Started by yukit0 Sep 9, 2005 at 10:56 AM 1 replies 650+ views
Original Post
yukit0
yukit0
Hi, i wondered if there is a way to draw an image on a Graphics object with an alpha channel, so you can still see whats beneath the image?
Blew
Blew
Yes. Just use g.drawImage().
blew
Optus
Optus
To elaborate on what Blew said: There isn't any special treatment of images with alpha transparency when using Graphics. Just call Graphics.drawImage() on any loaded image that has an alpha channel, and it will be handled correctly.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.