The AnnAudioObject Class supports WPF/Silverlight.
The AnnAudioObject Class is available in LEADTOOLS Document and Medical Imaging toolkits.
Defines an audio annotation object.
Supported in Silverlight, Windows Phone 7
Object Model
Syntax
Example
This example creates a new audio object at location 100, 200 and with dimensions of 400 x 600 and then adds it to a container.
Visual Basic | Copy Code |
---|
'''<!-- This example creates a new audio object at location 100, 200 and with dimensions of 400 x 600 and then adds it to a container.-->
Private Sub AnnAudioObject_AnnAudioObject(ByVal container As AnnContainer, ByVal waveFileName As String)
Dim audio As AnnAudioObject = New AnnAudioObject()
audio.Rect = New Rect(100, 200, 400, 600)
audio.Uri = waveFileName
container.Children.Add(audio)
' play the audio to test it
If ((audio.CanPlay)) Then
audio.Play()
End If
End Sub |
C# | Copy Code |
---|
private void AnnAudioObject_AnnAudioObject(AnnContainer container, string waveFileName)
{
AnnAudioObject audio = new AnnAudioObject();
audio.Rect = new Rect(100, 200, 400, 600);
audio.Uri = waveFileName;
container.Children.Add(audio);
// play the audio to test it
if((audio.CanPlay))
audio.Play();
} |
SilverlightCSharp | Copy Code |
---|
private void AnnAudioObject_AnnAudioObject(AnnContainer container, string waveFileName)
{
AnnAudioObject audio = new AnnAudioObject();
audio.Rect = new Rect(100, 200, 400, 600);
audio.Uri = waveFileName;
container.Children.Add(audio);
// play the audio to test it
if((audio.CanPlay))
audio.Play();
} |
SilverlightVB | Copy Code |
---|
Private Sub AnnAudioObject_AnnAudioObject(ByVal container As AnnContainer, ByVal waveFileName As String)
Dim audio As AnnAudioObject = New AnnAudioObject()
audio.Rect = New Rect(100, 200, 400, 600)
audio.Uri = waveFileName
container.Children.Add(audio)
' play the audio to test it
If (audio.CanPlay) Then
audio.Play()
End If
End Sub |
Remarks
Inheritance Hierarchy
Requirements
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)
See Also