Solved

Animation with D3

Posted on 1998-08-04
3
475 Views
Last Modified: 2010-04-04
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.
0
Comment
Question by:SJohnson
3 Comments
 

Expert Comment

by:nileq
ID: 1359724
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.

0
 
LVL 3

Accepted Solution

by:
Matvey earned 100 total points
ID: 1359725
I don't sugest to use any Delphi routines or classes to make animation - flickering is guaranteed. If you want to draw the animation by yourself use some API calls like BitBlt etc.
There are however lots of components for animation:

http://bes.trendline.co.il/torry/vcl/graphics/transit.zip
"The TTransitionEffect Component lets you make animated bitmap transitions like stretchs, zoom, slides, etc."

http://bes.trendline.co.il/torry/vcl/graphics/animimag.zip
"TAnimImage is a class that modifiy the TImage class to provide Animation Effect."

http://bes.trendline.co.il/torry/vcl/graphics/ffpbox.zip
"A simple replacement of TPaintBox which provide flickerless redrawing. Very useful when you need to draw complex image with animation effects."

http://bes.trendline.co.il/torry/vcl/mmedia/sprites1.zip
"TSpriteBox and TSprite are a pair of components for easy sprite animation. TSpriteBox is a drawing surface for TSprite. It also displays background images and/or a colored and/or a gradient background. TSprite accepts 2 images an AND and an OR image. These images combine to produce the sprite."

http://bes.trendline.co.il/torry/vcl/packs/graphic.zip
A package including animation object.

http://bes.trendline.co.il/torry/vcl/misceff/animat32.zip
"The TAnimated Component allows the easy programing of simple animations such as exploding text, books being paged through, etc. Animations are drawn as bitmaps consisting of two or more frames arranged in filmstrip form."

http://bes.trendline.co.il/torry/vcl/misceff/autoplay.zip
"This component can help you to design like helper of Microsoft Office97 very easy. You also design like of top right corner of animated of Netscape (IE). The component can show animated by thread, it can also rewind (BackPlay), play section of DIB or BMP (PlaySection), too. Uses DIB method to show."

http://bes.trendline.co.il/torry/vcl/shared/panoptic.zip
"Component that displays lines of text and/or bitmap images. It has a built-in timer and methods that, among other things, facilitate scrolling, animation, fading and morphing."

http://bes.trendline.co.il/torry/vcl/graphics/manimbmp.zip
http://bes.trendline.co.il/torry/vcl/graphics/jlanibmp.zip
http://bes.trendline.co.il/torry/vcl/misceff/panneau.exe

That should be all the freeware I found. Finding cool shareware isn't a problem at all...

c u, Matvey
0
 
LVL 1

Author Comment

by:SJohnson
ID: 1359726
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.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now