Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BufferedImage static_watermark = new BufferedImage(350, 50, BufferedImage.TYPE_3BYTE_BGR);
- Graphics g;
- Font f = new Font(Font.MONOSPACED, Font.PLAIN, 24);
- g = static_watermark.getGraphics();
- g.setColor(Color.RED);
- g.setFont(f);
- g.drawString("Przykladowy tekst", 30, 30);
- // release resources
- g.dispose();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement