07-16-2007, 10:46 PM
Thumbs Must Hurt
Join Date: Jun 2007
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | A problem of drawing lines in a image
Please Login to Remove!
Now I'm learning how to draw a line in a image, using the follows:
public void paint(Graphics g)
if(x != 0 && y != 0)
but I find there is an problem : when I remove the image in the blackberry screen , the line does not remove at the same time. Finally, I find that,when I remove the image ,I repaint the image , and redraw the line . I change the image position by scroll bar, but the position of line doen not change!
I do not want to change the line coordinate value , because I want to draw the line in the image memory, and add it to the screen, how can I do this??
Please give me some advice , thank you!