This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Help!Help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Help!Help!" Watch "Help!Help!" New topic


kim jungil

Joined: Sep 27, 2001
Posts: 27
hi, everyone
I have a question.
I want to draw two images on one panel, and when I save it I want to unite two images and save as one image. How can I do that?
If you have source code, please email to me.
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

Hmmmm... not sure exactly what you want... when you say "unite" do you mean you want to save both the images next to each other in one file, or do you mean you want to merge the images into a morphed image? I can show you the first... the second is a bit harder...

I have some code lying around that saves images... I messed around with it some to load images and then save a new image of those two... it's kind of hacked together, but it should give you some idea on what to do...

If you need any help with the code, or have any further questions, please post...

[This message has been edited by Nathan Pruett (edited September 27, 2001).]

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: Help!Help!
jQuery in Action, 3rd edition