VintaSoft Barcode .NET SDK v10.0
BarcodeSymbologySubsets Class
Members  Example 




Vintasoft.Barcode.SymbologySubsets Namespace : BarcodeSymbologySubsets Class
Contains standard barcode symbology subsets.
Object Model
BarcodeSymbologySubsets ClassCode32BarcodeSymbology ClassCode39ExtendedBarcodeSymbology ClassDeutschePostIdentcodeBarcodeSymbology ClassDeutschePostLeitcodeBarcodeSymbology ClassDhlAwbBarcodeSymbology ClassEanVelocityBarcodeSymbology ClassFedExGround96BarcodeSymbology ClassGS1_128BarcodeSymbology ClassGS1AztecBarcodeSymbology ClassGS1DataBarBarcodeSymbology ClassGS1DataBarExpandedBarcodeSymbology ClassGS1DataBarExpandedStackedBarcodeSymbology ClassGS1DataBarLimitedBarcodeSymbology ClassGS1DataBarStackedBarcodeSymbology ClassGS1DataMatrixBarcodeSymbology ClassGS1QRBarcodeSymbology ClassInterleaved2of5ChecksumISO16390 ClassInterleaved2of5ChecksumMod10C ClassIsbnBarcodeSymbology ClassIsbnPlus2BarcodeSymbology ClassIsbnPlus5BarcodeSymbology ClassIsmnBarcodeSymbology ClassIsmnPlus2BarcodeSymbology ClassIsmnPlus5BarcodeSymbology ClassIssnBarcodeSymbology ClassIssnPlus2BarcodeSymbology ClassIssnPlus5BarcodeSymbology ClassItf14BarcodeSymbology ClassJan13BarcodeSymbology ClassJan13Plus2BarcodeSymbology ClassJan13Plus5BarcodeSymbology ClassJan8BarcodeSymbology ClassJan8Plus2BarcodeSymbology ClassJan8Plus5BarcodeSymbology ClassMailmarkCmdmType29BarcodeSymbology ClassMailmarkCmdmType7BarcodeSymbology ClassMailmarkCmdmType9BarcodeSymbology ClassNumlyNumberBarcodeSymbology ClassOpcBarcodeSymbology ClassPpnBarcodeSymbology ClassPznBarcodeSymbology ClassSscc18BarcodeSymbology ClassSwissPostParcelBarcodeSymbology ClassVicsBolBarcodeSymbology ClassVicsScacProBarcodeSymbology ClassVinSymbology ClassXFACompressedAztecBarcodeSymbology ClassXFACompressedDataMatrixBarcodeSymbology ClassXFACompressedPDF417BarcodeSymbology ClassXFACompressedQRCodeBarcodeSymbology Class
Syntax
'Declaration
 
Public MustInherit NotInheritable Class BarcodeSymbologySubsets 
'Usage
 
Dim instance As BarcodeSymbologySubsets
public static class BarcodeSymbologySubsets 
public __gc abstract __sealed class BarcodeSymbologySubsets 
public ref class BarcodeSymbologySubsets abstract sealed 
Example
Read barcode subsets: please see example here.
Write barcode subsets: please see example here.
Read and write PPN barcode: please see example here.

This example shows how to read GS1-128 barcode from an image:
Public Shared Sub Recognize(image As Image)   
	' create the barcode reader   
	Using reader As New BarcodeReader()   
		' specify that reader must search for GS1-128 barcodes only   
   
		reader.Settings.ScanBarcodeTypes = BarcodeType.None   
		reader.Settings.ScanBarcodeSubsets.Add(BarcodeSymbologySubsets.GS1_128)   
   
		' recognize barcode on image    
		Dim infos As IBarcodeInfo() = reader.ReadBarcodes(image)   
   
		' for each found barcode   
		For j As Integer = 0 To infos.Length - 1   
			Dim info As GS1BarcodeInfo = DirectCast(infos(j), GS1BarcodeInfo)   
   
			' print barcode symbology   
			Console.WriteLine(info.BarcodeSubset)   
   
			' print barcode region on image   
			Console.WriteLine(info.Region.ToString())   
   
			' print Transmitted data   
			Console.WriteLine(String.Format("Transmitted data            : {0} ", info.TransmittedData))   
   
			' print Application identifiers values   
			Dim printableValue As New StringBuilder()   
			Dim aiValues As GS1ApplicationIdentifierValue() = info.ApplicationIdentifierValues   
			For i As Integer = 0 To aiValues.Length - 1   
				Dim aiValue As GS1ApplicationIdentifierValue = aiValues(i)   
				Dim ai As GS1ApplicationIdentifier = aiValue.ApplicationIdentifier   
				Console.WriteLine(String.Format("Application identifier {0}    : {1}", i + 1, ai.ApplicationIdentifier))   
				Console.WriteLine(String.Format("  Value                     : {0}", aiValue.Value))   
				Console.WriteLine(String.Format("  Data title                : {0}", ai.DataTitle))   
				Console.WriteLine(String.Format("  Data content              : {0}", ai.DataContent))   
				Console.WriteLine(String.Format("  Format                    : {0}", ai.Format))   
				Console.WriteLine(String.Format("  Is contains decimal point : {0}", ai.IsContainsDecimalPoint))   
				Console.WriteLine(String.Format("  Is variable length        : {0}", ai.IsVariableLength))   
				printableValue.Append(aiValue.ToString())   
			Next   
   
			' print GS1 printable value   
			Console.WriteLine("Printable GS1 value: " & printableValue.ToString())   
			Console.WriteLine()   
		Next   
	End Using   
End Sub
public static void Recognize(Image image)
{
    // create the barcode reader
    using (BarcodeReader reader = new BarcodeReader())
    {
        // specify that reader must search for GS1-128 barcodes only
            
        reader.Settings.ScanBarcodeTypes = BarcodeType.None;
        reader.Settings.ScanBarcodeSubsets.Add(BarcodeSymbologySubsets.GS1_128);
            
        // recognize barcode on image 
        IBarcodeInfo[] infos = reader.ReadBarcodes(image);
            
        // for each found barcode
        for (int j = 0; j < infos.Length; j++)
        {
            GS1BarcodeInfo info = (GS1BarcodeInfo)infos[j];
            
            // print barcode symbology
            Console.WriteLine(info.BarcodeSubset);
            
            // print barcode region on image
            Console.WriteLine(info.Region.ToString());
            
            // print Transmitted data
            Console.WriteLine(string.Format("Transmitted data            : {0} ", info.TransmittedData));
            
            // print Application identifiers values
            StringBuilder printableValue = new StringBuilder();
            GS1ApplicationIdentifierValue[] aiValues = info.ApplicationIdentifierValues;
            for (int i = 0; i < aiValues.Length; i++)
            {
                GS1ApplicationIdentifierValue aiValue = aiValues[i];
                GS1ApplicationIdentifier ai = aiValue.ApplicationIdentifier;
                Console.WriteLine(string.Format("Application identifier {0}    : {1}", i + 1, ai.ApplicationIdentifier));
                Console.WriteLine(string.Format("  Value                     : {0}", aiValue.Value));
                Console.WriteLine(string.Format("  Data title                : {0}", ai.DataTitle));
                Console.WriteLine(string.Format("  Data content              : {0}", ai.DataContent));
                Console.WriteLine(string.Format("  Format                    : {0}", ai.Format));
                Console.WriteLine(string.Format("  Is contains decimal point : {0}", ai.IsContainsDecimalPoint));
                Console.WriteLine(string.Format("  Is variable length        : {0}", ai.IsVariableLength));
                printableValue.Append(aiValue.ToString());
            }
            
            // print GS1 printable value
            Console.WriteLine("Printable GS1 value: " + printableValue.ToString());
            Console.WriteLine();
        }
    }
}
Inheritance Hierarchy

System.Object
   Vintasoft.Barcode.SymbologySubsets.BarcodeSymbologySubsets

Requirements

Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

See Also

Reference

BarcodeSymbologySubsets Members
Vintasoft.Barcode.SymbologySubsets Namespace
BarcodeSymbologySubset Class