This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin 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: 21088
85
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!