ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 DICOM Animation Speed
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

objori

USA
1 Posts

Posted - Sep 04 2011 :  16:47:55  Show Profile  Reply
In the DICOM example there is an Animate button to loop through DICOM files. How can I adjust the speed of animation?

ObjoriMan

fab

1310 Posts

Posted - Sep 05 2011 :  11:58:32  Show Profile  Reply
You have to specify the time for each frame using ImageDelayTime[] property. Example:
var
  i:integer;
begin
  // set time for each frame
  for i:=0 to ImageEnMView1.ImageCount-1 do
    ImageEnMView1.ImageDelayTime[i] := 100;  // 100 milliseconds

  // now play
  ImageEnMView1.Playing := SpeedButton1.Down;
end;
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: