Gets information about the specified codec.
public CodecsCodecInformation GetCodecInformation(string codecName)
Public Function GetCodecInformation( _ByVal codecName As String _) As CodecsCodecInformation
public CodecsCodecInformation getCodecInformation(String codecName) public:CodecsCodecInformation GetCodecInformation(String^ codecName)
codecName
The name of the codec to query. The codec name is usually a string containing 3 characters. The codec name is not case sensitive.
A CodecsCodecInformation object containing Information about the codec.
This example gets and then updates information about the PTOCA (PTK) filter.
using Leadtools;using Leadtools.Codecs;using Leadtools.ImageProcessing;using Leadtools.ImageProcessing.Color;using Leadtools.Svg;using LeadtoolsExamples.Common;public void GetCodecInformationExample(){RasterCodecs codecs = new RasterCodecs();CodecsCodecInformation codecInfo = codecs.GetCodecInformation("Tif");Console.WriteLine("CheckedByInformation : {0}", codecInfo.CheckedByInformation);Console.WriteLine("ExtensionList : {0}", codecInfo.ExtensionList);Console.WriteLine("IsPresent : {0}", codecInfo.IsPresent.ToString());Console.WriteLine("IsSlowInformation : {0}", codecInfo.IsSlowInformation.ToString());Console.WriteLine("LoadMode : {0}", codecInfo.LoadMode.ToString());Console.WriteLine("Name : {0}", codecInfo.Name);// change the extensions that the ptk filter tries to handlecodecInfo.ExtensionList = "ptk;ptoka;ptoca;ptca;ptka";codecs.SetCodecInformation(codecInfo);// re-display the new settingscodecInfo = codecs.GetCodecInformation("tif");Console.WriteLine("ExtensionList : {0}", codecInfo.ExtensionList);// Clean upcodecs.Dispose();}
Imports LeadtoolsImports Leadtools.CodecsImports Leadtools.ImageProcessingImports Leadtools.ImageProcessing.ColorImports Leadtools.DrawingImports Leadtools.SvgPublic Sub GetCodecInformationExample()Dim codecs As RasterCodecs = New RasterCodecs()Dim codecInfo As CodecsCodecInformation = codecs.GetCodecInformation("Tif")Console.WriteLine("CheckedByInformation : {0}", codecInfo.CheckedByInformation)Console.WriteLine("ExtensionList : {0}", codecInfo.ExtensionList)Console.WriteLine("IsPresent : {0}", codecInfo.IsPresent.ToString())Console.WriteLine("IsSlowInformation : {0}", codecInfo.IsSlowInformation.ToString())Console.WriteLine("LoadMode : {0}", codecInfo.LoadMode.ToString())Console.WriteLine("Name : {0}", codecInfo.Name)' change the extensions that the ptk filter tries to handlecodecInfo.ExtensionList = "ptk;ptoka;ptoca;ptca;ptka"codecs.SetCodecInformation(codecInfo)' re-display the new settingscodecInfo = codecs.GetCodecInformation("tif")Console.WriteLine("ExtensionList : {0}", codecInfo.ExtensionList)' Clean upcodecs.Dispose()End 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
