Link to home
Start Free TrialLog in
Avatar of SJohnson
SJohnsonFlag for Australia

asked on

Animation with D3

Hi all.  I dont know if this can be done or not, but heres what I want to do.  I have a 24bit image as a background.  I want to move upto four images horizontally on this background transparently.  We have achieved the basics using the TImage component, but as you can imagine, this is as jerky as hell.

Is there anyway we can do this without using something like FastGraph (which we have, but it seems overly complicated and we have problems leaving native Delphi controls on the form as FG seems to erase everything we put on the form).

Any help would be appreciated!

Stuart.
Avatar of nileq
nileq

Instead of using TImage you should use TBitmap, TGraphic or TIcon
to initioate your graphics, and to draw them on the canvas with Canvas.Draw(X,Y : Integer; Graphic : TGraphic); This will probably speed things up for you.

Or you could build a delphi compatible animation (AVI) to use with TAnimate

Let me know if it works.

ASKER CERTIFIED SOLUTION
Avatar of Matvey
Matvey

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SJohnson

ASKER

Hi Matevy.

Thanks for you long and detailed answer!  I actually figured out how to do it last night, but I am going to go through those components you mentioned and see if any of them do any better.

I'll award the points regardless.

Thanks for you help.

Stuart.