Leadtools.Barcode Namespace > BarcodeEngine Class : GetSupportedSymbologies Method |
public static BarcodeSymbology[] GetSupportedSymbologies()
'Declaration Public Shared Function GetSupportedSymbologies() As BarcodeSymbology()
'Usage Dim value() As BarcodeSymbology value = BarcodeEngine.GetSupportedSymbologies()
public static BarcodeSymbology[] GetSupportedSymbologies()
+ (void)getSupportedSymbologies:(LTBarcodeSymbology**)supportedSymbologies supportedSymbologiesCount:(unsigned int*)supportedSymbologiesCount;
public static BarcodeSymbology[] getSupportedSymbologies()
function Leadtools.Barcode.BarcodeEngine.GetSupportedSymbologies()
public: static array<BarcodeSymbology>^ GetSupportedSymbologies();
The GetSupportedSymbologies returns all the barcode symbologies (types) supported by LEADTOOLS. Depending on the level of unlocked support and availability of the back-end barcodes assemblies, not all of the supported types may be available. For example, if the Leadtools.Barcode.QrRead.dll assembly is missing, QR read support will not be available to your application. Similarly, if the Leadtools.Barcode.QrWrite.dll assembly is missing, QR write support will not be available.
To get a list of the barcode symbologies available for reading, use BarcodeReader.GetAvailableSymbologies and to get a list of the barcode symbologies available for writing, use BarcodeWriter.GetAvailableSymbologies.
To get the friendly name of any barcode symbology, use BarcodeEngine.GetSymbologyFriendlyName.
Imports Leadtools Imports Leadtools.Codecs Imports Leadtools.Forms Imports Leadtools.Barcode Imports Leadtools.ImageProcessing Public Sub BarcodeEngine_SupportedAndAvailableSymbologiesExample() ' Show all the supported symbologies Dim supportedSymbologies() As BarcodeSymbology = BarcodeEngine.GetSupportedSymbologies() Console.WriteLine("{0} Supported symbologies:", supportedSymbologies.Length) For Each symbology As BarcodeSymbology In supportedSymbologies Console.WriteLine("{0}: {1}", symbology, BarcodeEngine.GetSymbologyFriendlyName(symbology)) Next Console.WriteLine("----------") ' Create a Barcode engine to get the available read and write symbologies Dim engine As New BarcodeEngine() Dim readSymbologies() As BarcodeSymbology = engine.Reader.GetAvailableSymbologies() Console.WriteLine("{0} Avaliable read symbologies:", readSymbologies.Length) For Each symbology As BarcodeSymbology In readSymbologies Console.WriteLine(symbology) Next Console.WriteLine("----------") Dim writeSymbologies() As BarcodeSymbology = engine.Writer.GetAvailableSymbologies() Console.WriteLine("{0} Avaliable write symbologies:", writeSymbologies.Length) For Each symbology As BarcodeSymbology In writeSymbologies Console.WriteLine(symbology) Next End Sub
using Leadtools; using Leadtools.Codecs; using Leadtools.Forms; using Leadtools.Barcode; using Leadtools.ImageProcessing; public void BarcodeEngine_SupportedAndAvailableSymbologiesExample() { // Show all the supported symbologies BarcodeSymbology[] supportedSymbologies = BarcodeEngine.GetSupportedSymbologies(); Console.WriteLine("{0} Supported symbologies:", supportedSymbologies.Length); foreach(BarcodeSymbology symbology in supportedSymbologies) { Console.WriteLine("{0}: {1}", symbology, BarcodeEngine.GetSymbologyFriendlyName(symbology)); } Console.WriteLine("----------"); // Create a Barcode engine to get the available read and write symbologies BarcodeEngine engine = new BarcodeEngine(); BarcodeSymbology[] readSymbologies = engine.Reader.GetAvailableSymbologies(); Console.WriteLine("{0} Avaliable read symbologies:", readSymbologies.Length); foreach(BarcodeSymbology symbology in readSymbologies) { Console.WriteLine(symbology); } Console.WriteLine("----------"); BarcodeSymbology[] writeSymbologies = engine.Writer.GetAvailableSymbologies(); Console.WriteLine("{0} Avaliable write symbologies:", writeSymbologies.Length); foreach(BarcodeSymbology symbology in writeSymbologies) { Console.WriteLine(symbology); } }
using Leadtools; using Leadtools.Codecs; using Leadtools.Barcode; using Leadtools.ImageProcessing; public void BarcodeEngine_SupportedAndAvailableSymbologiesExample() { // Show all the supported symbologies BarcodeSymbology[] supportedSymbologies = BarcodeEngine.GetSupportedSymbologies(); Debug.WriteLine("{0} Supported symbologies:", supportedSymbologies.Length); foreach(BarcodeSymbology symbology in supportedSymbologies) { Debug.WriteLine("{0}: {1}", symbology, BarcodeEngine.GetSymbologyFriendlyName(symbology)); } Debug.WriteLine("----------"); // Create a Barcode engine to get the available read and write symbologies BarcodeEngine engine = new BarcodeEngine(); BarcodeSymbology[] readSymbologies = engine.Reader.GetAvailableSymbologies(); Debug.WriteLine("{0} Avaliable read symbologies:", readSymbologies.Length); foreach(BarcodeSymbology symbology in readSymbologies) { Debug.WriteLine(symbology); } Debug.WriteLine("----------"); BarcodeSymbology[] writeSymbologies = engine.Writer.GetAvailableSymbologies(); Debug.WriteLine("{0} Avaliable write symbologies:", writeSymbologies.Length); foreach(BarcodeSymbology symbology in writeSymbologies) { Debug.WriteLine(symbology); } }
using Leadtools; using Leadtools.Codecs; using Leadtools.Forms; using Leadtools.Barcode; using Leadtools.ImageProcessing; using Leadtools.Examples; public void BarcodeEngine_SupportedAndAvailableSymbologiesExample() { // Show all the supported symbologies BarcodeSymbology[] supportedSymbologies = BarcodeEngine.GetSupportedSymbologies(); Console.WriteLine("{0} Supported symbologies:", supportedSymbologies.Length); foreach(BarcodeSymbology symbology in supportedSymbologies) { Console.WriteLine("{0}: {1}", symbology, BarcodeEngine.GetSymbologyFriendlyName(symbology)); } Console.WriteLine("----------"); // Create a Barcode engine to get the available read and write symbologies BarcodeEngine engine = new BarcodeEngine(); BarcodeSymbology[] readSymbologies = engine.Reader.GetAvailableSymbologies(); Console.WriteLine("{0} available read symbologies:", readSymbologies.Length); foreach(BarcodeSymbology symbology in readSymbologies) { Console.WriteLine(symbology); } Console.WriteLine("----------"); BarcodeSymbology[] writeSymbologies = engine.Writer.GetAvailableSymbologies(); Console.WriteLine("{0} available write symbologies:", writeSymbologies.Length); foreach(BarcodeSymbology symbology in writeSymbologies) { Console.WriteLine(symbology); } }
Imports Leadtools Imports Leadtools.Codecs Imports Leadtools.Forms Imports Leadtools.Barcode Imports Leadtools.ImageProcessing Public Sub BarcodeEngine_SupportedAndAvailableSymbologiesExample() ' Show all the supported symbologies Dim supportedSymbologies As BarcodeSymbology() = BarcodeEngine.GetSupportedSymbologies() Console.WriteLine("{0} Supported symbologies:", supportedSymbologies.Length) For Each symbology As BarcodeSymbology In supportedSymbologies Console.WriteLine("{0}: {1}", symbology, BarcodeEngine.GetSymbologyFriendlyName(symbology)) Next symbology Console.WriteLine("----------") ' Create a Barcode engine to get the available read and write symbologies Dim engine As BarcodeEngine = New BarcodeEngine() Dim readSymbologies As BarcodeSymbology() = engine.Reader.GetAvailableSymbologies() Console.WriteLine("{0} available read symbologies:", readSymbologies.Length) For Each symbology As BarcodeSymbology In readSymbologies Console.WriteLine(symbology) Next symbology Console.WriteLine("----------") Dim writeSymbologies As BarcodeSymbology() = engine.Writer.GetAvailableSymbologies() Console.WriteLine("{0} available write symbologies:", writeSymbologies.Length) For Each symbology As BarcodeSymbology In writeSymbologies Console.WriteLine(symbology) Next symbology End Sub