Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.8.30
|
Leadtools.Codecs Namespace > RasterCodecs Class : GetCodecInformation Method |
public CodecsCodecInformation GetCodecInformation( string codecName )
'Declaration
Public Function GetCodecInformation( _ ByVal codecName As String _ ) As CodecsCodecInformation
'Usage
Dim instance As RasterCodecs Dim codecName As String Dim value As CodecsCodecInformation value = instance.GetCodecInformation(codecName)
public CodecsCodecInformation GetCodecInformation( string codecName )
public CodecsCodecInformation getCodecInformation(String codecName)
function Leadtools.Codecs.RasterCodecs.GetCodecInformation( codecName )
public: CodecsCodecInformation GetCodecInformation( String^ codecName )
This example gets and then updates information about the PTOCA (PTK) filter.
Imports Leadtools Imports Leadtools.Codecs Imports Leadtools.ImageProcessing Imports Leadtools.ImageProcessing.Color Imports Leadtools.Drawing Imports Leadtools.Svg Public 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 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() End Sub
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("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(); }