Defines a video annotation object.
public class AnnVideoObject : Leadtools.Windows.Annotations.AnnImageObject, Leadtools.Windows.Annotations.IAnnHeader, Leadtools.Windows.Annotations.IAnnImage, Leadtools.Windows.Annotations.IAnnObject, Leadtools.Windows.Annotations.IAnnPicture, Leadtools.Windows.Annotations.IAnnRectangle
Public Class AnnVideoObject
Inherits Leadtools.Windows.Annotations.AnnImageObject
Implements Leadtools.Windows.Annotations.IAnnHeader, Leadtools.Windows.Annotations.IAnnImage, Leadtools.Windows.Annotations.IAnnObject, Leadtools.Windows.Annotations.IAnnPicture, Leadtools.Windows.Annotations.IAnnRectangle
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 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.
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.
Imports Leadtools.Windows.Annotations
Imports Leadtools.Windows.Controls
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
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Demos;
using Leadtools.Help;
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);
}
Products |
Support |
Feedback: AnnVideoObject Class - Leadtools.Windows.Annotations |
Introduction |
Help Version 19.0.2017.3.22
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.