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

2017/1/28

Transparency issues on background?

mehanix mehanix

2017/1/28

#
Hello! The picture I'm trying to add as the background image does not turn up the same way I edited it. Here is the actual picture: And here is how it shows up in the game: Anyone know how to fix this? The image format is PNG, and it's the same size as the world i'm placing it in, so it shouldn't be scaling it or anything. I'm not doing anything to the image either, besides:
        GreenfootImage bkg = new GreenfootImage("menu_bkg.png");
        setBackground(bkg);
danpost danpost

2017/1/29

#
mehanix wrote...
The picture I'm trying to add as the background image does not turn up the same way I edited it. Here is the actual picture: < Image Omitted > And here is how it shows up in the game: < Image Omitted >
I honestly did not see any differences between the two snapshots.
mehanix mehanix

2017/1/29

#
Yeah, never mind that. I accidentally set GIMP to work in greyscale mode and would create a weird hue around the lightbulb when imported into greenfoot. My bad.
danpost danpost

2017/1/29

#
mehanix wrote...
Yeah, never mind that. I accidentally set GIMP to work in greyscale mode and would create a weird hue around the lightbulb when imported into greenfoot. My bad.
Usually, background images are of 'jpg' type to avoid having any transparencies in the image.
You need to login to post a reply.