The AnnVideoObject Class supports WPF/Silverlight.
The AnnVideoObject Class is available in LEADTOOLS Document and Medical Imaging toolkits.
Defines a video annotation object. Supported in Silverlight, Windows Phone 7Visual Basic (Declaration) | |
---|---|
Public Class AnnVideoObject Inherits AnnImageObject Implements IAnnHeader, IAnnImage, IAnnObject, IAnnPicture, IAnnRectangle |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As AnnVideoObject |
C# | |
---|---|
public class AnnVideoObject : AnnImageObject, IAnnHeader, IAnnImage, IAnnObject, IAnnPicture, IAnnRectangle |
C++/CLI | |
---|---|
public ref class AnnVideoObject : public AnnImageObject, IAnnHeader, IAnnImage, IAnnObject, IAnnPicture, IAnnRectangle |
This example creates a new video object at location 100, 200 and with dimensions of 400 x 600 and then adds it to a container.
Visual Basic | Copy Code |
---|---|
Private Sub AnnVideoObject_AnnVideoObject(ByVal container As AnnContainer, ByVal videoFileName As String) Dim video As New AnnVideoObject() video.Rect = New Rect(100, 200, 400, 600) video.Uri = videoFileName container.Children.Add(video) End Sub |
C# | Copy Code |
---|---|
private void AnnVideoObject_AnnVideoObject(AnnContainer container, string videoFileName) { AnnVideoObject video = new AnnVideoObject(); video.Rect = new Rect(100, 200, 400, 600); video.Uri = videoFileName; container.Children.Add(video); } |
SilverlightCSharp | Copy Code |
---|---|
SilverlightVB | Copy Code |
---|---|
The video annotation object is a scaled image that can be activated to play a video clip. The video file path is stored in the Uri property, so the video data itself is not stored in this object, only the physical path. In run mode, when this video object is clicked, the framework will try to locate and then play the video file stored in Uri. This object will use the default image of a video icon. To change this default image, change the AnnImageObject.Picture value.
The AnnVideoObject class inherits the the AnnImageObject class and accesses the common AnnImageObject.Picture property mentioned above through this inheritance.
For more information about the video annotation object refer to AnnVideoObject for WPF
For more information about the automated annotation video object, refer to WPF Annotation Objects - Automated Features and WPF Automated Annotations - Video Tab.
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
Leadtools.Windows.Annotations.AnnObject
Leadtools.Windows.Annotations.AnnRectangleObject
Leadtools.Windows.Annotations.AnnImageObject
Leadtools.Windows.Annotations.AnnVideoObject
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)