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

x
?
Solved

BMP/JPG to AVI

Posted on 2005-04-30
3
Medium Priority
?
724 Views
Last Modified: 2013-11-19
Hi,

Does anyone know of a component, preferrably free, that will construct an AVI out of a number of jpg or BMP files.

If not a component then some code on how to do it.

I am running Delphi7 under Win2K

Cheers

Chris
0
Comment
Question by:ChrisBerry
  • 2
3 Comments
 
LVL 15

Expert Comment

by:mikelittlewood
ID: 13900514
Well if you just want to animate a number of images, you can use an image list to hold them all, then use a timer set to something small to keep flipping the images to make a moving one.

For example if you had 10 images in an image list:

drop a global counter variable on the form, an image component, an imagelist and a timer

procedure TForm1.FormCreate(Sender: TObject);
begin
  iIdx := 0;
  ImageList1.GetBitmap(iIdx, Image1.Picture.Bitmap);
  Image1.Invalidate;
end;

procedure TForm1.Timer1Timer(Sender: TObject);
begin
  Inc(iIdx);
  if iIdx > 9 then
    iIdx := 0;
  ImageList1.GetBitmap(iIdx, Image1.Picture.Bitmap);
  Image1.Invalidate;
end;
0
 
LVL 15

Accepted Solution

by:
mikelittlewood earned 375 total points
ID: 13902193
Otherwise take a look at these two links

First one is actually in C but if you understand it you should be able to convert to pascal
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20607463.html

or try
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20303836.html
0
 

Author Comment

by:ChrisBerry
ID: 13904720
Hi,

Yes I do want to create an AVI.

One of the links you mentioned contained a reference to TAVIWriter which does exactly what I want.

Thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Learn how to create interesting presentations by including videos to keep your audience engaged using Prezi. Select "Insert" from the top menu in your Prezi editor: Select "YouTube Video": Paste the video URL into the prompt: "Select "Insert":…
Suggested Courses
Course of the Month20 days, 10 hours left to enroll

868 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