• Post Reply Bookmark Topic Watch Topic
  • New Topic

Stamps on an image

 
Shalini Chandel
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to create an application that adds stamps to the image. A sort of stamping is available in Adobe photoshop.

Can we do it using Swing? How to emboss an image??
 
Shalini Chandel
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to put stamp something like this:


 
todd runstein
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like you want to draw a string on an image, correct? You'd use Java2D to do that.

Create a new BufferedImage, get the Graphics2D from it, draw the image and a string. Sorry I don't have time to provide code samples, but the Java2D tutorial is pretty good and worth looking at:

http://java.sun.com/docs/books/tutorial/2d/
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Shalini Chandel:
I want to put stamp something like this:



Um, do you really expect use to see your C-drive

Anyhowdy, do read that 2-D tutorial. Here's a demo of "watermarking",
if that's what you are alluding to...
 
Paper has not yet been outlawed – so let your Java Swing application print with wild abandon: JPDF
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!