Schani Guest
|
Posted: Sun Feb 26, 2006 3:12 pm Post subject: Draw a line in an Image |
|
|
Hi,
I have a Program, where you can load an Image. This is shown as a ImageIcon
in a JPanel.
Furthermore I want to create a button, where I can press on it and the
program will draw a line
in this Image. It should be possible, that the JPanel displays the pic with
the line after using this button.
It should also be possible, that the "new" pic is an Image object again.
I know, that i have to use the Graphics package, but i dont know how.
Can you help me to solve my problem, please? |
|