LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)
LEAD Technologies, Inc

AnnVideoObject Class

Example 





Members 
Defines a video annotation object. .NET support Silverlight support
Object Model
AnnVideoObject ClassAnnPicture ClassAnnBrush ClassAnnPicture ClassAnnBrush Class
Syntax
public class AnnVideoObject : AnnImageObject, IAnnHeaderIAnnImageIAnnObjectIAnnPictureIAnnRectangle  
'Declaration
 
Public Class AnnVideoObject 
   Inherits AnnImageObject
   Implements IAnnHeaderIAnnImageIAnnObjectIAnnPictureIAnnRectangle 
'Usage
 
Dim instance As AnnVideoObject
public sealed class AnnVideoObject : IAnnHeaderIAnnImageIAnnObjectIAnnPictureIAnnRectangle  
function Leadtools.Windows.Annotations.AnnVideoObject()
public ref class AnnVideoObject : public AnnImageObject, IAnnHeaderIAnnImageIAnnObjectIAnnPictureIAnnRectangle  
Remarks

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 Picture value.

The AnnVideoObject class inherits the the AnnImageObject class and accesses the common 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.

Example
Copy CodeCopy 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
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);
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnVideoObject Members
Leadtools.Windows.Annotations Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.