For Programmers: Free Programming Magazines  


Home > Archive > Java Help > February 2006 > Draw a line in an Image Object









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Draw a line in an Image Object
Schani

2006-02-26, 7:02 pm

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?

Thanks


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com