Re: Moving an Image

Posted by mickeyf on November 30, 2005

In Reply to: Moving an Image posted by Andrew on November 28, 2005

: I've got a bitmap image loaded in a TImage and placed on the form. What i need during runtime is to move it slowly every few seconds (or in less than 1 second).

: What I'm doing is after a few split seconds have passed, I change the TImage top and left values. But when this is done rapidly, the image flickers. Is there a way to avoid this flickering?

If what you're trying to achieve amounts to a simple animation, what many people do is just have two (or more) images (in your case in different locations), and alternately hide and show them.

Related Articles and Replies