Libraryless. Click here for Pure Java version (1095L/8K/24K).
!747 !image classes m { static Color background = Color.white; static Color foreground = Color.black; p { Font font = loadFont("#1000993"); // Brother Deluxe Font BufferedImage img = new BufferedImage(600, 300, BufferedImage.TYPE_INT_RGB); Graphics g = img.getGraphics(); int w = img.getWidth(), h = img.getHeight(); g.setColor(background); g.fillRect(0, 0, w, h); g.setColor(foreground); g.setFont(font.deriveFont(30f)); g.drawString("Hello world!", 50, 50); g.dispose(); showImage(img); } }
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: | 1190 / 1278 |
| Referenced in: | [show references] |