WMProfile Property

Summary
Gets or sets the WMProfile object associated with this capture object.
Syntax
C#
C++/CLI
public virtual WMProfile WMProfile { get; set; } 
public: 
virtual property WMProfile^ WMProfile { 
   WMProfile^ get(); 
   void set (    WMProfile^ ); 
} 

Property Value

A WMProfile object.

Remarks

This property allows the user to define a custom profile for writing WMV files.

Example
C#
using Leadtools; 
using Leadtools.Multimedia; 
using LeadtoolsMultimediaExamples.Fixtures; 
 
 
public bool _result = false; 
public CaptureCtrlForm _form = new CaptureCtrlForm(); 
 
public void WMProfileExample() 
{ 
   // reference the capture control 
   CaptureCtrl capturectrl = _form.CaptureCtrl; 
 
   try 
   { 
      // reference the profile if available 
      WMProfile CurrentProfile = capturectrl.WMProfile; 
 
      if (CurrentProfile != null) 
         MessageBox.Show(_form, CurrentProfile.Name + " is the currently selected profile.", "Settings"); 
      else 
         MessageBox.Show(_form, "There are currently no profiles associated with this capture object", "Settings"); 
      _result = true; 
   } 
   catch (Exception) 
   { 
      _result = false; 
   } 
} 
Requirements

Target Platforms

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Multimedia Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.