Gets or sets the default picture used by all AnnAudioObject objects.
public static Leadtools.Windows.Annotations.AnnPicture DefaultPicture {get; set;}Public Shared Property DefaultPicture As Leadtools.Windows.Annotations.AnnPicturepublic:static property Leadtools.Windows.Annotations.AnnPicture^ DefaultPicture {Leadtools.Windows.Annotations.AnnPicture^ get();void set ( Leadtools.Windows.Annotations.AnnPicture^ );}
An AnnPicture class that defines the picture used by the AnnAudioObject.
Set the UseOriginalPicture property to true to revert back to the original picture.
Imports Leadtools.Windows.ControlsImports Leadtools.Windows.AnnotationsPublic Sub AnnAudioObject_DefaultPicture(ByVal container As AnnContainer, ByVal viewer As ImageViewer, ByVal newAudioPicture As String)' first add a new AnnAudioObject with the original pictureDim obj As AnnAudioObject = New AnnAudioObject()obj.Rect = New Rect(100, 100, 100, 100)container.Children.Add(obj)MessageBox.Show("An audio object with the original picture")' now change the picture to one of our ownDim picture As AnnPicture = New AnnPicture(New BitmapImage(New Uri(newAudioPicture)))AnnAudioObject.DefaultPicture = picture' at this point, all new AnnAudioObject objects will use this new picture' add another audio objectobj = New AnnAudioObject()obj.Rect = New Rect(100, 210, 100, 100)container.Children.Add(obj)MessageBox.Show("An audio object with the new picture")' set the picture back to the original valueAnnAudioObject.UseOriginalPicture = True' add another audio objectobj = New AnnAudioObject()obj.Rect = New Rect(100, 320, 100, 100)container.Children.Add(obj)MessageBox.Show("An audio object with the original picture")End Sub
using Leadtools.Windows.Controls;using Leadtools.Windows.Annotations;using Leadtools.Demos;using Leadtools.Help;public void AnnAudioObject_DefaultPicture(AnnContainer container, ImageViewer viewer, string newAudioPicture){// first add a new AnnAudioObject with the original pictureAnnAudioObject obj = new AnnAudioObject();obj.Rect = new Rect(100, 100, 100, 100);container.Children.Add(obj);MessageBox.Show("An audio object with the original picture");// now change the picture to one of our ownAnnPicture picture = new AnnPicture(new BitmapImage(new Uri(newAudioPicture)));AnnAudioObject.DefaultPicture = picture;// at this point, all new AnnAudioObject objects will use this new picture// add another audio objectobj = new AnnAudioObject();obj.Rect = new Rect(100, 210, 100, 100);container.Children.Add(obj);MessageBox.Show("An audio object with the new picture");// set the picture back to the original valueAnnAudioObject.UseOriginalPicture = true;// add another audio objectobj = new AnnAudioObject();obj.Rect = new Rect(100, 320, 100, 100);container.Children.Add(obj);MessageBox.Show("An audio object with the original picture");}
using Leadtools.Windows.Controls;using Leadtools.Windows.Annotations;using Leadtools.Examples;public void AnnAudioObject_DefaultPicture(AnnContainer container, ImageViewer viewer, string newAudioPicture){// first add a new AnnAudioObject with the original pictureAnnAudioObject obj = new AnnAudioObject();obj.Rect = new Rect(100, 100, 100, 100);container.Children.Add(obj);MessageBox.Show("An audio object with the original picture");// now change the picture to one of our ownAnnPicture picture = new AnnPicture(new BitmapImage(new Uri(newAudioPicture)));AnnAudioObject.DefaultPicture = picture;// at this point, all new AnnAudioObject objects will use this new picture// add another audio objectobj = new AnnAudioObject();obj.Rect = new Rect(100, 210, 100, 100);container.Children.Add(obj);MessageBox.Show("An audio object with the new picture");// set the picture back to the original valueAnnAudioObject.UseOriginalPicture = true;// add another audio objectobj = new AnnAudioObject();obj.Rect = new Rect(100, 320, 100, 100);container.Children.Add(obj);MessageBox.Show("An audio object with the original picture");}
Imports Leadtools.Windows.ControlsImports Leadtools.Windows.AnnotationsPublic Sub AnnAudioObject_DefaultPicture(ByVal container As AnnContainer, ByVal viewer As ImageViewer, ByVal newAudioPicture As String)' first add a new AnnAudioObject with the original pictureDim obj As AnnAudioObject = New AnnAudioObject()obj.Rect = New Rect(100, 100, 100, 100)container.Children.Add(obj)MessageBox.Show("An audio object with the original picture")' now change the picture to one of our ownDim picture As AnnPicture = New AnnPicture(New BitmapImage(New Uri(newAudioPicture)))AnnAudioObject.DefaultPicture = picture' at this point, all new AnnAudioObject objects will use this new picture' add another audio objectobj = New AnnAudioObject()obj.Rect = New Rect(100, 210, 100, 100)container.Children.Add(obj)MessageBox.Show("An audio object with the new picture")' set the picture back to the original valueAnnAudioObject.UseOriginalPicture = True' add another audio objectobj = New AnnAudioObject()obj.Rect = New Rect(100, 320, 100, 100)container.Children.Add(obj)MessageBox.Show("An audio object with the original picture")End Sub
|
Products |
Support |
Feedback: DefaultPicture Property (AnnAudioObject) - 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.