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

Report as inappropriate.

danpost
danpost presents ...

2013/1/29

Image Transparency Adder/Trimmer

Use this program to change unwanted color outside actual image to transparent while removing excess edging from the image.

For those users of Greenfoot that do not have a graphics editor that handle transparency:

I have included an already created executable jar file that can be extracted from the download.

If you decide not to trust it, you can download, open in Greenfoot, check the codes and create a jar application yourself (make sure to restore all commented lines in the Pix class, first).
You may have to make some changes due to the version of greenfoot you are using (I use an older version).

This is a basic working scenario; but has restricted use on the site.

Outer transparent edges are automatically removed when the image is loaded.

Click on the color of the image you wish to make transparent; then click the 'Make transparent' button. All matching color pixels in the image will be turned transparent and all new excess edging will be removed from the image.

Loading and saving of image files can be done from and to anywhere in your file directory.

8218 views / 1686 in the last 7 days

4 votes | 0 in the last 7 days

Tags: with-source graphics image transparency danpost support

open in greenfoot
Your browser does not support the canvas tag.
YehudaYehuda

2017/4/24

There is too much work to make the scenario work on Greenfoot Version 3.1.0.
danpostdanpost

2017/4/24

@Yehuda, you do not have to open in greenfoot at all. Just download the GFAR file and extract the inner executable jar file (Transparencies.jar) from it. Then run that jar file directly.
YehudaYehuda

2017/4/24

I know I can do that, but the code is harder than it could/should be to change (with the Color class).
danpostdanpost

2017/4/24

@Yehuda, do not complain about things that are unimportant. The jar file was included so that you did not have to deal with altering the codes. If you insist on messing with the codes, that is your choice -- deal with it. There is no need or reason to mention here how difficult it is for you to change. It is not productive in any way.
YehudaYehuda

2017/4/24

Does it sound like I'm complaining? (It doesn't "sound" and it probably does look like it.) You're saying that there is no change to be made to your code?(!) (I don't have any necessarily, but the code can still be changed.) I was dealing with the code because to open the .gfar file I clicked on it, which opened the scenario - with errors. So I just wanted to see if I can make there not be any errors (before I got to the .jar file), but it was too complicated to fix everything, especially if there is no purpose to do so which is my problem.
A new version of this scenario was uploaded on 2021-02-13 00:18:36 UTC
A new version of this scenario was uploaded on 2021-02-13 05:19:34 UTC
A new version of this scenario was uploaded on 2021-02-13 05:35:07 UTC
A new version of this scenario was uploaded on 2021-02-13 05:42:14 UTC
A new version of this scenario was uploaded on 2021-02-13 05:53:12 UTC

See all comments

Want to leave a comment? You must first log in.

Who likes this?

UNDEAD_DC carhad eddierodriguez778@gmail.com moobe