Libraryless. Click here for Pure Java version (1095L/8K/24K).
1 | !747 |
2 | !image classes |
3 | |
4 | m { |
5 | static Color background = Color.white; |
6 | static Color foreground = Color.black; |
7 | |
8 | p { |
9 | Font font = loadFont("#1000993"); // Brother Deluxe Font |
10 | BufferedImage img = new BufferedImage(600, 300, BufferedImage.TYPE_INT_RGB); |
11 | |
12 | Graphics g = img.getGraphics(); |
13 | int w = img.getWidth(), h = img.getHeight(); |
14 | g.setColor(background); |
15 | g.fillRect(0, 0, w, h); |
16 | g.setColor(foreground); |
17 | g.setFont(font.deriveFont(30f)); |
18 | g.drawString("Hello world!", 50, 50); |
19 | g.dispose(); |
20 | |
21 | showImage(img); |
22 | } |
23 | } |
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, dhtvkmknsjym, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
ID | Author/Program | Comment | Date |
---|---|---|---|
1127 | stefan | Nice :)
The result should be the same everywhere... right? | 2015-10-15 18:50:46 |
Snippet ID: | #1001420 |
Snippet name: | Write text on a bitmap test |
Eternal ID of this version: | #1001420/1 |
Text MD5: | 9b042a167dc90f899ac481317ceeac98 |
Transpilation MD5: | 83a0eea38a0a2765816333e703b37c84 |
Author: | stefan |
Category: | |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-10-15 19:15:31 |
Source code size: | 576 bytes / 23 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 910 / 947 |
Referenced in: | [show references] |