This site requires JavaScript, please enable it in your browser!
Greenfoot back
jogit666
jogit666 wrote ...

2014/8/8

How can I cover my background image with another image?

jogit666 jogit666

2014/8/8

#
So I have the background image, but what I'm trying to do is cover it with a different, transparent image. How can I do that? Because 'setBackground()' removes the original image.
Super_Hippo Super_Hippo

2014/8/8

#
getBackground().drawImage(new GreenfootImage(getBackground().getWidth(), getBackground().getHeight()), 0, 0);
Why do you want to cover the background with an invisible image?
You need to login to post a reply.