←Select platform

AnnVideoObject Class

Summary

Defines a video annotation object.

Syntax

C#
VB
C++
[SerializableAttribute()] 
public class AnnVideoObject : Leadtools.Annotations.AnnImageObject, Leadtools.Annotations.IAnnPictureObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable   
  
<SerializableAttribute()> 
Public Class AnnVideoObject  
   Inherits Leadtools.Annotations.AnnImageObject 
   Implements Leadtools.Annotations.IAnnPictureObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable  
[SerializableAttribute()] 
public ref class AnnVideoObject : public Leadtools.Annotations.AnnImageObject, Leadtools.Annotations.IAnnPictureObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable   

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 FileName 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 FileName. 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 AnnImageObject class and accesses the common Picture property mentioned above through this inheritance.

LEADTOOLS Annotations uses the LEADTOOLS Multimedia for .NET toolkit to render video files and Leadtools.Multimedia must be present on the machine. For more information, refer to Introduction to LEADTOOLS Multimedia for .NET.

For more information about the video annotation object refer to AnnVideoObject (Deprecated).

For more information about the automated annotation video object, refer to Annotation Objects - Automated Features (Deprecated) and Automated Annotations - Video Tab (Deprecated).

Example

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.

C#
VB
using Leadtools; 
using Leadtools.Annotations; 
using Leadtools.Codecs; 
using Leadtools.WinForms; 
 
private void AnnVideoObject_AnnVideoObject(AnnContainer container, string videoFileName) 
{ 
   AnnVideoObject video = new AnnVideoObject(); 
   video.Bounds = new AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel); 
   video.FileName = videoFileName; 
   container.Objects.Add(video); 
} 
Imports Leadtools 
Imports Leadtools.Annotations 
Imports Leadtools.Codecs 
Imports Leadtools.WinForms 
 
Private Sub AnnVideoObject_AnnVideoObject(ByVal container As AnnContainer, ByVal videoFileName As String) 
   Dim video As New AnnVideoObject() 
   video.Bounds = New AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel) 
   video.FileName = videoFileName 
   container.Objects.Add(video) 
End Sub 

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Annotations Assembly
Click or drag to resize