draw an arrow on image
hello
what is the code to draw circle.arrow and a line on an image.
hello
what is the code to draw circle.arrow and a line on an image.
graphics, drawline ^_^
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Graphics.html
Message was edited by:
Yannix
thank u for ur reply but arrow must be drawn dynamically on the image when we press a button
private void DrawArrow(ActionEvent e)
{
imagePanel.setPen(ImagePanel.ARROW);
}
public void setPen(int pen) {
this.pen = pen;
}
this is the code i wrote i could draw the arrow on the image but is not staying where it is drawn.the moment i draw an arrow it is moving somewhere on the image . can u please check it.