[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Animation with D3

Posted on 1998-08-04
3
Medium Priority
?
504 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 400 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Screencast - Getting to Know the Pipeline
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

834 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