Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

mearging two png  RSS feed

 
singh sagar
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ranchers
i have to create a prog to merge two png images

Just like: http://i38.tinypic.com/33k87i9.jpg


please help
thanks
 
Rob Spoor
Sheriff
Posts: 20895
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One possible solution:
- read both images. You can use ImageIO for that
- create a new BufferedImage with the right size
- get that image's Graphics object
- paint on that
- save the BufferedImage

Example:
 
singh sagar
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Rob
thanks for the solution
and i realy like spirit of the ranchers for helping
thanks again
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!