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

2016/10/17

Editing actor images to not have white background

JWK3986 JWK3986

2016/10/17

#
I am using several png files that I added to my scenarios' images folders and have not been able to remove the white background around the image. In chapter 10 in the Greenfoot book there is mention of setting pixels to be transparent in order to get rid of that rectangular shape or outline, but I'm having trouble locating anything in the forums and videos I'm aware of that clarifies. I have 3 actors that this issue is affecting. I'm guessing I have to add code to the actor that sets the alpha value to transparent? Can anyone help out? I can list any code necessary if needed. Thanks.
Super_Hippo Super_Hippo

2016/10/17

#
This scenario might be what you want.
JWK3986 JWK3986

2016/10/17

#
Thanks I'll check it out and see if it works out
JWK3986 JWK3986

2016/10/17

#
That worked perfectly! awesome scenario haha, thanks very much!
Nosson1459 Nosson1459

2016/10/19

#
I use Photoshop but it costs money and I had it already for other uses. In this scenario (the one linked above) does the color bars do anything? because when I clicked on it nothing happened when I typed 'R' nothing happened and when i typed numbers nothing happened it can only make white transparent. So my question is, is there a way to make the selected color not white without going onto the source code (which means the color bar is for show)?
danpost danpost

2016/10/19

#
Nosson1459 wrote...
I use Photoshop but it costs money and I had it already for other uses. In this scenario (the one linked above) does the color bars do anything? because when I clicked on it nothing happened when I typed 'R' nothing happened and when i typed numbers nothing happened it can only make white transparent. So my question is, is there a way to make the selected color not white without going onto the source code (which means the color bar is for show)?
Click on a pixel in the image and the color bars will reflect the color clicked on and the color box will show the color. If you want to change all pixels of that color to transparent, then click the 'Make transparent' button. However, if you just want to trim the excess transparencies from around your image, just load and save the image.
Nosson1459 Nosson1459

2016/10/19

#
i hav no real need 4 the program, was just curious
JWK3986 JWK3986

2016/10/27

#
Thanks for the great question Nosson and the reply danpost, I just ran into the same issue and needed clarifying!
Nosson1459 Nosson1459

2016/10/27

#
anytime
You need to login to post a reply.