LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
AnnVideoObject Class
See Also  Members  
Leadtools.Annotations Namespace : AnnVideoObject Class



The AnnVideoObject Class is available in LEADTOOLS Document and Medical Imaging toolkits.

Defines a video annotation object.

Object Model

AnnVideoObject ClassAnnRectangle StructureAnnRectangle StructureAnnBrush ClassAnnContainer ClassAnnPicture ClassAnnFont ClassAnnGroupObject ClassAnnFont ClassAnnPoint StructureAnnPoint StructureAnnPen ClassAnnPicture ClassAnnPoint StructureAnnPoint StructureAnnUnitConverter Class

Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class AnnVideoObject 
   Inherits AnnImageObject
   Implements IAnnPictureObjectICloneableIDisposableISerializable 
Visual Basic (Usage)Copy Code
Dim instance As AnnVideoObject
C++/CLI 
[SerializableAttribute()]
public ref class AnnVideoObject : public AnnImageObject, IAnnPictureObjectICloneableIDisposableISerializable  

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.

Visual BasicCopy Code
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
C#Copy Code
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);
}

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

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

Inheritance Hierarchy

System.Object
   Leadtools.Annotations.AnnDrawable
      Leadtools.Annotations.AnnObject
         Leadtools.Annotations.AnnRectangleObject
            Leadtools.Annotations.AnnImageObject
               Leadtools.Annotations.AnnVideoObject

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

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