Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. BufferedImage static_watermark = new BufferedImage(350, 50, BufferedImage.TYPE_3BYTE_BGR);
  2. Graphics g;
  3. Font f = new Font(Font.MONOSPACED, Font.PLAIN, 24);
  4. g = static_watermark.getGraphics();
  5. g.setColor(Color.RED);
  6. g.setFont(f);
  7.  
  8. g.drawString("Przykladowy tekst", 30, 30);
  9. // release resources
  10. g.dispose();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement