The constructor for the FilterEnum object.
public FilterEnum() Public Function New() public:FilterEnum();
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 Meritint currentMerit = filterEnum.GetMerit(Constants.PreferredFilters.H264Decompressor);// Increase the value by "one"int newMerit = currentMerit + 1;// Set the new merit value to LEAD H264 Decoder/DecompressorfilterEnum.SetMerit(Constants.PreferredFilters.H264Decompressor, newMerit);// Get the merit value againcurrentMerit = filterEnum.GetMerit(Constants.PreferredFilters.H264Decompressor);// Check and see whether the value has been set correctly_result = (currentMerit == newMerit) ? true : false;}catch (Exception){_result = false;}}
Imports LeadtoolsImports Leadtools.MultimediaImports LeadtoolsMultimediaExamples.FixturesPublic _result As Boolean = FalsePublic _form As ConvertCtrlForm = New ConvertCtrlForm()Public Sub FilterEnumMeritExample()Try' Create an object instance of FilterEnumDim filterEnum As FilterEnum = New FilterEnum' Get LEAD H264 Decoder/Decompressor MeritDim currentMerit As Integer = filterEnum.GetMerit(Leadtools.Multimedia.Constants.PreferredFilters.H264Decompressor)' Increase the value by "one"Dim newMerit As Integer = currentMerit + 1' Set the new merit value to LEAD H264 Decoder/DecompressorfilterEnum.SetMerit(Leadtools.Multimedia.Constants.PreferredFilters.H264Decompressor, newMerit)' Get the merit value againcurrentMerit = filterEnum.GetMerit(Leadtools.Multimedia.Constants.PreferredFilters.H264Decompressor)' Check and see if the value has been set correctlyIf currentMerit = newMerit Then_result = TrueElse_result = FalseEnd IfCatch e1 As Exception_result = FalseEnd TryEnd Sub
|
Products |
Support |
Feedback: FilterEnum Constructor (FilterEnum) - Leadtools.Multimedia |
Introduction |
Help Version 19.0.2017.6.16
|

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.