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

Report as inappropriate.

Duta
Duta presents ...

2012/2/3

Cool Text

Give your text an image background! :)
This is all contained within one method in Text.class, so you can easily move it into a class of your own (just remember to include "import java.awt.*;" at the top of your class)

The reason this has a large file size is because the image I used for the background of the text is 1.1mb or so.

4041 views / 27 in the last 7 days

1 vote | 0 in the last 7 days

Tags: demo with-source

This scenario is a member of: Image manipulation


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

2012/2/3

Wow ok my typing is failing today. What I meant to say was: The reason this has a large file size is because the image I used for the background of the text is 1.1mb or so
kiarockskiarocks

2012/2/3

Looks cool!
DutaDuta

2012/2/3

Thanks :) literally took me 15 minutes but I thought I might as well upload it in case people need it
kiarockskiarocks

2012/2/3

might use it
A new version of this scenario was uploaded on Sat Feb 18 16:34:34 UTC 2012 Cut down the amount of code in the algorithm to be more readable and efficient.
danpostdanpost

2012/2/18

Just read up on working with BufferedImage and was wondering if you went that route. Well, you did not; you went the way I probably would have coded it. In fact it is very similar to code I wrote on an in-house project. Oh, BTW, the background file size is 1.1 kb (not mb).
DutaDuta

2012/2/18

Is it? it was 1.1mb when I posted that... strange.
danpostdanpost

2012/2/18

You are right, NOW I am seeing 1.1mb (I do not know where I saw the 1.1kb at, but I looked twice at it, to be sure!).
danpostdanpost

2012/2/18

OH, I need glasses (and I have them on!) :/ I saw 1,138 kb (that is a 'one' followed by a 'comma', not a 'period').
DutaDuta

2012/2/19

Easy mistake to make - I just got glasses 2 days ago (they're not full time, its just that I get double vision a lot)

See all comments

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

Who likes this?

Carryminati