• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Stamps on an image

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to put stamp something like this:


 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
reply
    Bookmark Topic Watch Topic
  • New Topic