The constructor for the FilterEnum object.
The examples below contain two kinds of C# and VB code for the following tasks:
Using SetMerit/GetMerit to increase a filter's merit by a given value.
Toggling the LEAD SPDIF Passthru.
using Leadtools;
using Leadtools.Multimedia;
using LeadtoolsMultimediaExamples.Fixtures;
public bool _result = false;
public ConvertCtrlForm _form = new ConvertCtrlForm();
public void FilterEnumMeritExample()
{
FilterEnum filterEnum = new FilterEnum();
try
{
// Get LEAD H264 Decoder/Decompressor Merit
int currentMerit = filterEnum.GetMerit(Constants.PreferredFilters.H264Decompressor);
// Increase the value by "one"
int newMerit = currentMerit + 1;
// Set the new merit value to LEAD H264 Decoder/Decompressor
filterEnum.SetMerit(Constants.PreferredFilters.H264Decompressor, newMerit);
// Get the merit value again
currentMerit = filterEnum.GetMerit(Constants.PreferredFilters.H264Decompressor);
// Check and see whether the value has been set correctly
_result = (currentMerit == newMerit) ? true : false;
}
catch (Exception)
{
_result = false;
}
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document