[prev in list] [next in list] [prev in thread] [next in thread]
List: kvm-interest
Subject: Re: load and erasing images off canvas?.
From: "Darryl L. Pierce" <mcpierce () TELOCITY ! COM>
Date: 2001-09-30 0:10:10
[Download RAW message or body]
On Sun, Jul 29, 2001 at 11:50:24AM +0800, Yong Ming Lee wrote:
> Hi i got a question regarding images.
>
> lets say I load an image at position x, then i press LEFT button and the image move \
> to position y. I tried to use the repaint() method and I get 2 images (1 on \
> position x and 1 on position y). What i want is that the screen erased the image at \
> position x and on the image at position y is displayed.
> Do i have to pain the image at position x with fillRect() method to cover the image \
> or is there and easier way out.pls advise.thanks
The simple answer is yes, you have to repaint the area with the foreground color to \
erase the previous painting.
--
Darryl L. Pierce <mcpierce@telocity.com>
The Infobahn Offramp <http://welcome.to/mcpierce>
"Yes, Dougal, but you're not like most people..."
=========================================================================To \
unsubscribe, send email to listserv@java.sun.com and include in the body of the \
message "signoff KVM-INTEREST". For general help, send email to \
listserv@java.sun.com and include in the body of the message "help".
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic