Occurs when the frame changes during animation playback.
public event EventHandler<RasterPictureBoxFrameChangedEventArgs> FrameChanged public:event EventHandler<Leadtools::Controls::RasterPictureBoxFrameChangedEventArgs^>^ FrameChanged
This event is raised if the AnimationMode property is changed by either a programmatic modification or user interaction.
using Leadtools;using Leadtools.Controls;using Leadtools.Codecs;using Leadtools.Drawing;public void RasterPictureBox_AnimationModeChanged(){RasterPictureBox viewer = new RasterPictureBox();viewer.PropertyChanged += viewer_PropertyChanged;switch (viewer.AnimationMode){case RasterPictureBoxAnimationMode.Infinite:viewer.AnimationMode = RasterPictureBoxAnimationMode.UseImageGlobalLoop;break;case RasterPictureBoxAnimationMode.UseImageGlobalLoop:viewer.AnimationMode = RasterPictureBoxAnimationMode.Infinite;break;}viewer.PlayAnimation();viewer.PropertyChanged -= viewer_PropertyChanged;}private void viewer_PropertyChanged(object sender, PropertyChangedEventArgs e){if (e.PropertyName == "AnimationMode"){RasterPictureBox viewer = sender as RasterPictureBox;string s = string.Format("AnimationModeChanged Event: {0}", viewer.AnimationMode.ToString());Debug.WriteLine(s);}}
| Parameter | Type | Description |
|---|---|---|
| sender | object | The source of the event. |
| e | RasterPictureBoxFrameChangedEventArgs | The event data. |
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
