←Select platform

GetCodecInformation Method

Summary
Gets information about the specified codec.
Syntax
C#
VB
C++
Java
public CodecsCodecInformation GetCodecInformation( 
   string codecName 
) 
Public Function GetCodecInformation( _ 
   ByVal codecName As String _ 
) As CodecsCodecInformation 
public CodecsCodecInformation getCodecInformation(String codecName) 
public: 
CodecsCodecInformation GetCodecInformation(  
   String^ codecName 
)  

Parameters

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.

Return Value

A CodecsCodecInformation object containing Information about the codec.

Example

This example gets and then updates information about the PTOCA (PTK) filter.

C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing; 
using Leadtools.ImageProcessing.Color; 
using Leadtools.Svg; 
 
 
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("IsIgnored : {0}", codecInfo.IsIgnored.ToString()); 
	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 handle 
	codecInfo.ExtensionList = "ptk;ptoka;ptoca;ptca;ptka"; 
	codecs.SetCodecInformation(codecInfo); 
 
	// re-display the new settings 
	codecInfo = codecs.GetCodecInformation("tif"); 
	Console.WriteLine("ExtensionList : {0}", codecInfo.ExtensionList); 
 
	// Clean up 
	codecs.Dispose(); 
} 
Requirements

Target Platforms

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

Leadtools.Codecs Assembly