Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose() Public Sub Dispose() public:void Dispose();
Use this method to close or release unmanaged resources such as files, streams, and handles held by an instance of the class that implements this interface. By convention, this method is used for all tasks associated with freeing resources held by an object, or preparing an object for reuse.
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
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
