Leadtools.MedicalViewer Requires Medical Imaging license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
MedicalViewerAnimation Class
See Also  Members   Example 
Leadtools.MedicalViewer Namespace : MedicalViewerAnimation Class



Represents the class that is used to animate or change the animation properties of those cells that have more than one frame.

Syntax

Visual Basic (Declaration) 
Public Class MedicalViewerAnimation 
Visual Basic (Usage)Copy Code
Dim instance As MedicalViewerAnimation
C# 
public class MedicalViewerAnimation 
C++/CLI 
public ref class MedicalViewerAnimation 

Example

play animation for a multiple frames cell

Visual BasicCopy Code
<Test> _
Public Sub MedicalViewerAnimationExample()
   Dim myForm As MedicalViewerForm = GetMedicalControl()
   Dim medicalViewer As MedicalViewer = myForm.Viewer
   medicalViewer.Cells(0).Animation.AnimateAllSubCells = True
   medicalViewer.Cells(0).Animation.Flags = MedicalViewerAnimationFlags.Loop Or MedicalViewerAnimationFlags.PaintNormal Or MedicalViewerAnimationFlags.PlayForward
   medicalViewer.Cells(0).Animation.FrameCount = -1
   medicalViewer.Cells(0).Animation.Frames = -1
   medicalViewer.Cells(0).Animation.Interval = 200
   medicalViewer.Cells(0).Animation.StartFrame = 0
   medicalViewer.Cells(0).Animation.Animated = True

   myForm.ShowDialog()
End Sub
C#Copy Code
public void MedicalViewerAnimationExample() 

   MedicalViewerForm myForm = GetMedicalControl(); 
   MedicalViewer medicalViewer = myForm.Viewer; 
 
   medicalViewer.Cells[0].Animation.AnimateAllSubCells = true; 
   medicalViewer.Cells[0].Animation.Flags = MedicalViewerAnimationFlags.Loop | MedicalViewerAnimationFlags.PaintNormal | MedicalViewerAnimationFlags.PlayForward; 
   medicalViewer.Cells[0].Animation.FrameCount = -1; 
   medicalViewer.Cells[0].Animation.Frames = -1; 
   medicalViewer.Cells[0].Animation.Interval = 200; 
   medicalViewer.Cells[0].Animation.StartFrame = 0; 
   medicalViewer.Cells[0].Animation.Animated = true; 
 
   myForm.ShowDialog(); 
}

Remarks

  • One powerful feature of this class, is that you can adjust the images while the animation is still running. The following actions can be applied during the animation:
    • Window level action.
    • Alpha action.
    • Offset action.
    • Scale action.
To load and play an animation, create a cell that contains a multiple-frame image. Once it is created, play or stop the animation using the Animated property.

Inheritance Hierarchy

System.Object
   Leadtools.MedicalViewer.MedicalViewerAnimation

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.MedicalViewer requires a Medical Imaging license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features