Class DecodeType

Class DecodeType

Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.2.0)

Specify the type of barcode to read.

public static class DecodeType

Inheritance

objectDecodeType

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Examples

This sample shows how to detect Code39 and Code128 barcodes.

using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.Code39, DecodeType.Code128))
{
    foreach (BarCodeResult result in reader.ReadBarCodes())
    {
        Console.WriteLine("BarCode Type: " + result.CodeTypeName);
        Console.WriteLine("BarCode CodeText: " + result.CodeText);
    }
}
Using reader As New BarCodeReader("c:\test.png", DecodeType.Code39, DecodeType.Code128)
    For Each result As BarCodeResult In reader.ReadBarCodes()
        Console.WriteLine("BarCode Type: " + result.CodeTypeName)
        Console.WriteLine("BarCode CodeText: " + result.CodeText)
    Next
End Using

Fields

AllSupportedTypes

Specifies that data will be checked with all available symbologies

public static readonly MultyDecodeType AllSupportedTypes

Field Value

MultyDecodeType

AustraliaPost

Specifies that the data should be decoded with Australia Post barcode specification

public static readonly SingleDecodeType AustraliaPost

Field Value

SingleDecodeType

AustralianPosteParcel

Specifies that the data should be decoded with Australian Post Domestic eParcel Barcode barcode specification

public static readonly SingleDecodeType AustralianPosteParcel

Field Value

SingleDecodeType

Aztec

Specifies that the data should be decoded with Aztec barcode specification

public static readonly SingleDecodeType Aztec

Field Value

SingleDecodeType

Codabar

Specifies that the data should be decoded with CODABAR barcode specification

public static readonly SingleDecodeType Codabar

Field Value

SingleDecodeType

CodablockF

Specifies that the data should be decoded with CodablockF barcode specification

public static readonly SingleDecodeType CodablockF

Field Value

SingleDecodeType

Code11

Specifies that the data should be decoded with CODE 11 barcode specification

public static readonly SingleDecodeType Code11

Field Value

SingleDecodeType

Code128

Specifies that the data should be decoded with CODE 128 barcode specification

public static readonly SingleDecodeType Code128

Field Value

SingleDecodeType

Code16K

Specifies that the data should be decoded with SCode16K barcode specification

public static readonly SingleDecodeType Code16K

Field Value

SingleDecodeType

Code32

Specifies that the data should be decoded with Code32 barcode specification

public static readonly SingleDecodeType Code32

Field Value

SingleDecodeType

Code39

Specifies that the data should be decoded with Code 39 basic charset barcode specification: ISO/IEC 16388

public static readonly SingleDecodeType Code39

Field Value

SingleDecodeType

Code39FullASCII

Specifies that the data should be decoded with Code 39 full ASCII charset barcode specification: ISO/IEC 16388

public static readonly SingleDecodeType Code39FullASCII

Field Value

SingleDecodeType

Code93

Specifies that the data should be decoded with CODE 93 barcode specification

public static readonly SingleDecodeType Code93

Field Value

SingleDecodeType

CompactPdf417

Specifies that the data should be decoded with CompactPdf417 (Pdf417Truncated) barcode specification

public static readonly SingleDecodeType CompactPdf417

Field Value

SingleDecodeType

DataLogic2of5

Specifies that the data should be decoded with DataLogic 2 of 5 barcode specification

public static readonly SingleDecodeType DataLogic2of5

Field Value

SingleDecodeType

DataMatrix

Specifies that the data should be decoded with DataMatrix barcode symbology

public static readonly SingleDecodeType DataMatrix

Field Value

SingleDecodeType

DatabarExpanded

Specifies that the data should be decoded with GS1 Databar expanded barcode specification

public static readonly SingleDecodeType DatabarExpanded

Field Value

SingleDecodeType

DatabarExpandedStacked

Specifies that the data should be decoded with GS1 Databar expanded stacked barcode specification

public static readonly SingleDecodeType DatabarExpandedStacked

Field Value

SingleDecodeType

DatabarLimited

Specifies that the data should be decoded with GS1 Databar limited barcode specification

public static readonly SingleDecodeType DatabarLimited

Field Value

SingleDecodeType

DatabarOmniDirectional

Specifies that the data should be decoded with GS1 Databar omni-directional barcode specification

public static readonly SingleDecodeType DatabarOmniDirectional

Field Value

SingleDecodeType

DatabarStacked

Specifies that the data should be decoded with GS1 Databar stacked barcode specification

public static readonly SingleDecodeType DatabarStacked

Field Value

SingleDecodeType

DatabarStackedOmniDirectional

Specifies that the data should be decoded with GS1 Databar stacked omni-directional barcode specification

public static readonly SingleDecodeType DatabarStackedOmniDirectional

Field Value

SingleDecodeType

DatabarTruncated

Specifies that the data should be decoded with GS1 Databar truncated barcode specification

public static readonly SingleDecodeType DatabarTruncated

Field Value

SingleDecodeType

DeutschePostIdentcode

Specifies that the data should be decoded with DeutschePost Ident code barcode specification

public static readonly SingleDecodeType DeutschePostIdentcode

Field Value

SingleDecodeType

DeutschePostLeitcode

Specifies that the data should be decoded with DeutschePost Leit code barcode specification

public static readonly SingleDecodeType DeutschePostLeitcode

Field Value

SingleDecodeType

DotCode

Specifies that the data should be decoded with DotCode barcode specification

public static readonly SingleDecodeType DotCode

Field Value

SingleDecodeType

DutchKIX

Specifies that the data should be decoded with DotCode barcode specification

public static readonly SingleDecodeType DutchKIX

Field Value

SingleDecodeType

EAN13

Specifies that the data should be decoded with EAN-13 barcode specification

public static readonly SingleDecodeType EAN13

Field Value

SingleDecodeType

EAN14

Specifies that the data should be decoded with EAN14 barcode specification

public static readonly SingleDecodeType EAN14

Field Value

SingleDecodeType

EAN8

Specifies that the data should be decoded with EAN-8 barcode specification

public static readonly SingleDecodeType EAN8

Field Value

SingleDecodeType

GS1Aztec

Specifies that the data should be decoded with GS1 Aztec barcode specification

public static readonly SingleDecodeType GS1Aztec

Field Value

SingleDecodeType

GS1Code128

Specifies that the data should be decoded with GS1 CODE 128 barcode specification

public static readonly SingleDecodeType GS1Code128

Field Value

SingleDecodeType

GS1CompositeBar

Specifies that the data should be decoded with GS1 Composite Bar barcode specification

public static readonly SingleDecodeType GS1CompositeBar

Field Value

SingleDecodeType

GS1DataMatrix

Specifies that the data should be decoded with GS1DataMatrix barcode symbology

public static readonly SingleDecodeType GS1DataMatrix

Field Value

SingleDecodeType

GS1DotCode

Specifies that the data should be decoded with GS1 DotCode barcode specification

public static readonly SingleDecodeType GS1DotCode

Field Value

SingleDecodeType

GS1HanXin

Specifies that the data should be decoded with GS1 Han Xin Code barcode specification

public static readonly SingleDecodeType GS1HanXin

Field Value

SingleDecodeType

GS1MicroPdf417

Specifies that the data should be decoded with MicroPdf417 barcode specification

public static readonly SingleDecodeType GS1MicroPdf417

Field Value

SingleDecodeType

GS1QR

Specifies that the data should be decoded with GS1 QR barcode specification

public static readonly SingleDecodeType GS1QR

Field Value

SingleDecodeType

HIBCAztecLIC

Specifies that the data should be decoded with HIBC LIC Aztec barcode specification

public static readonly SingleDecodeType HIBCAztecLIC

Field Value

SingleDecodeType

HIBCAztecPAS

Specifies that the data should be decoded with HIBC PAS Aztec barcode specification

public static readonly SingleDecodeType HIBCAztecPAS

Field Value

SingleDecodeType

HIBCCode128LIC

Specifies that the data should be decoded with HIBC LIC Code128 barcode specification

public static readonly SingleDecodeType HIBCCode128LIC

Field Value

SingleDecodeType

HIBCCode128PAS

Specifies that the data should be decoded with HIBC PAS Code128 barcode specification

public static readonly SingleDecodeType HIBCCode128PAS

Field Value

SingleDecodeType

HIBCCode39LIC

Specifies that the data should be decoded with HIBC LIC Code39 barcode specification

public static readonly SingleDecodeType HIBCCode39LIC

Field Value

SingleDecodeType

HIBCCode39PAS

Specifies that the data should be decoded with HIBC PAS Code39 barcode specification

public static readonly SingleDecodeType HIBCCode39PAS

Field Value

SingleDecodeType

HIBCDataMatrixLIC

Specifies that the data should be decoded with HIBC LIC DataMatrix barcode specification

public static readonly SingleDecodeType HIBCDataMatrixLIC

Field Value

SingleDecodeType

HIBCDataMatrixPAS

Specifies that the data should be decoded with HIBC PAS DataMatrix barcode specification

public static readonly SingleDecodeType HIBCDataMatrixPAS

Field Value

SingleDecodeType

HIBCQRLIC

Specifies that the data should be decoded with HIBC LIC QR barcode specification

public static readonly SingleDecodeType HIBCQRLIC

Field Value

SingleDecodeType

HIBCQRPAS

Specifies that the data should be decoded with HIBC PAS QR barcode specification

public static readonly SingleDecodeType HIBCQRPAS

Field Value

SingleDecodeType

HanXin

Specifies that the data should be decoded with Han Xin Code barcode specification

public static readonly SingleDecodeType HanXin

Field Value

SingleDecodeType

IATA2of5

Specifies that the data should be decoded with IATA 2 of 5 barcode specification. IATA (International Air Transport Association) uses this barcode for the management of air cargo.

public static readonly SingleDecodeType IATA2of5

Field Value

SingleDecodeType

ISBN

Specifies that the data should be decoded with ISBN barcode specification

public static readonly SingleDecodeType ISBN

Field Value

SingleDecodeType

ISMN

Specifies that the data should be decoded with ISMN barcode specification

public static readonly SingleDecodeType ISMN

Field Value

SingleDecodeType

ISSN

Specifies that the data should be decoded with ISSN barcode specification

public static readonly SingleDecodeType ISSN

Field Value

SingleDecodeType

ITF14

Specifies that the data should be decoded with ITF14 barcode specification

public static readonly SingleDecodeType ITF14

Field Value

SingleDecodeType

ITF6

Specifies that the data should be decoded with ITF6 barcode specification

public static readonly SingleDecodeType ITF6

Field Value

SingleDecodeType

Interleaved2of5

Specifies that the data should be decoded with INTERLEAVED 2 of 5 barcode specification

public static readonly SingleDecodeType Interleaved2of5

Field Value

SingleDecodeType

ItalianPost25

Specifies that the data should be decoded with Italian Post 25 barcode specification

public static readonly SingleDecodeType ItalianPost25

Field Value

SingleDecodeType

MSI

Specifies that the data should be decoded with MSI Plessey barcode specification

public static readonly SingleDecodeType MSI

Field Value

SingleDecodeType

MacroPdf417

Specifies that the data should be decoded with MacroPdf417 barcode specification

public static readonly SingleDecodeType MacroPdf417

Field Value

SingleDecodeType

Mailmark

Specifies that the data should be decoded with Royal Mail Mailmark barcode specification.

public static readonly SingleDecodeType Mailmark

Field Value

SingleDecodeType

Matrix2of5

Specifies that the data should be decoded with Matrix 2 of 5 barcode specification

public static readonly SingleDecodeType Matrix2of5

Field Value

SingleDecodeType

MaxiCode

Specifies that the data should be decoded with MaxiCode barcode specification

public static readonly SingleDecodeType MaxiCode

Field Value

SingleDecodeType

MicrE13B

Specifies that the data should be decoded with MICR E-13B barcode specification

public static readonly SingleDecodeType MicrE13B

Field Value

SingleDecodeType

MicroPdf417

Specifies that the data should be decoded with MicroPdf417 barcode specification

public static readonly SingleDecodeType MicroPdf417

Field Value

SingleDecodeType

MicroQR

Specifies that the data should be decoded with MicroQR Code barcode specification

public static readonly SingleDecodeType MicroQR

Field Value

SingleDecodeType

MostCommonTypes

Specifies that data will be checked with most commonly used symbologies

public static readonly MultyDecodeType MostCommonTypes

Field Value

MultyDecodeType

None

Unspecified decode type.

public static readonly SingleDecodeType None

Field Value

SingleDecodeType

OPC

Specifies that the data should be decoded with OPC barcode specification

public static readonly SingleDecodeType OPC

Field Value

SingleDecodeType

OneCode

Specifies that the data should be decoded with USPS OneCode barcode specification

public static readonly SingleDecodeType OneCode

Field Value

SingleDecodeType

PZN

Specifies that the data should be decoded with PZN barcode specification. This symbology is also known as Pharma Zentral Nummer. PZN7 and PZN8 are supported.

public static readonly SingleDecodeType PZN

Field Value

SingleDecodeType

PatchCode

Specifies that the data should be decoded with Patch code barcode specification. Barcode symbology is used for automated scanning

public static readonly SingleDecodeType PatchCode

Field Value

SingleDecodeType

Pdf417

Specifies that the data should be decoded with Pdf417 barcode symbology

public static readonly SingleDecodeType Pdf417

Field Value

SingleDecodeType

Pharmacode

Specifies that the data should be decoded with Pharmacode barcode. This symbology is also known as Pharmaceutical Binary Code

public static readonly SingleDecodeType Pharmacode

Field Value

SingleDecodeType

Planet

Specifies that the data should be decoded with Planet barcode specification

public static readonly SingleDecodeType Planet

Field Value

SingleDecodeType

PostalTypes

Specifies that data will be checked with all of 1.5D Postal barcode symbologies, like Planet, Postnet, AustraliaPost, OneCode, RM4SCC, DutchKIX

public static readonly MultyDecodeType PostalTypes

Field Value

MultyDecodeType

Postnet

Specifies that the data should be decoded with Postnet barcode specification

public static readonly SingleDecodeType Postnet

Field Value

SingleDecodeType

QR

Specifies that the data should be decoded with QR Code barcode specification

public static readonly SingleDecodeType QR

Field Value

SingleDecodeType

RM4SCC

Specifies that the data should be decoded with RM4SCC barcode specification. RM4SCC (Royal Mail 4-state Customer Code) is used for automated mail sort process in UK.

public static readonly SingleDecodeType RM4SCC

Field Value

SingleDecodeType

RectMicroQR

Specifies that the data should be decoded with RectMicroQR (rMQR) Code barcode specification

public static readonly SingleDecodeType RectMicroQR

Field Value

SingleDecodeType

SCC14

Specifies that the data should be decoded with SCC14 barcode specification

public static readonly SingleDecodeType SCC14

Field Value

SingleDecodeType

SSCC18

Specifies that the data should be decoded with SSCC18 barcode specification

public static readonly SingleDecodeType SSCC18

Field Value

SingleDecodeType

Standard2of5

Specifies that the data should be decoded with Standard 2 of 5 barcode specification

public static readonly SingleDecodeType Standard2of5

Field Value

SingleDecodeType

Supplement

Specifies that the data should be decoded with Supplement(EAN2, EAN5) barcode specification

public static readonly SingleDecodeType Supplement

Field Value

SingleDecodeType

SwissPostParcel

Specifies that the data should be decoded with Swiss Post Parcel Barcode barcode specification

public static readonly SingleDecodeType SwissPostParcel

Field Value

SingleDecodeType

Types1D

Specifies that data will be checked with all of 1D barcode symbologies

public static readonly MultyDecodeType Types1D

Field Value

MultyDecodeType

Types2D

Specifies that data will be checked with all of 2D barcode symbologies

public static readonly MultyDecodeType Types2D

Field Value

MultyDecodeType

UPCA

Specifies that the data should be decoded with UPC-A barcode specification

public static readonly SingleDecodeType UPCA

Field Value

SingleDecodeType

UPCE

Specifies that the data should be decoded with UPC-E barcode specification

public static readonly SingleDecodeType UPCE

Field Value

SingleDecodeType

VIN

Specifies that the data should be decoded with VIN (Vehicle Identification Number) barcode specification

public static readonly SingleDecodeType VIN

Field Value

SingleDecodeType

Properties

AllSupportedTypesArray

Gets an array that represents AllSupportedTypes

public static SingleDecodeType[] AllSupportedTypesArray { get; }

Property Value

SingleDecodeType[]

Methods

GetNames()

Retrieves an array of the names of the decode types.

public static string[] GetNames()

Returns

string[]

A string array of the names of the decode types.

Is1D(BaseDecodeType)

Determines if the specified Aspose.BarCode.BarCodeRecognition.BaseDecodeType contains any 1D barcode symbology

public static bool Is1D(BaseDecodeType symbology)

Parameters

symbology BaseDecodeType

The Aspose.BarCode.BarCodeRecognition.BaseDecodeType to test.

Returns

bool

Returns true if Aspose.BarCode.BarCodeRecognition.BaseDecodeType contains any 1D barcode symbology; otherwise, returns false.

Is2D(BaseDecodeType)

Determines if the specified Aspose.BarCode.BarCodeRecognition.BaseDecodeType contains any 2D barcode symbology

public static bool Is2D(BaseDecodeType symbology)

Parameters

symbology BaseDecodeType

The Aspose.BarCode.BarCodeRecognition.BaseDecodeType to test.

Returns

bool

Returns true if Aspose.BarCode.BarCodeRecognition.BaseDecodeType contains any 2D barcode symbology; otherwise, returns false.

IsPostal(BaseDecodeType)

Determines if the specified Aspose.BarCode.BarCodeRecognition.BaseDecodeType contains any Postal barcode symbology

public static bool IsPostal(BaseDecodeType symbology)

Parameters

symbology BaseDecodeType

The Aspose.BarCode.BarCodeRecognition.BaseDecodeType to test.

Returns

bool

Returns true if Aspose.BarCode.BarCodeRecognition.BaseDecodeType contains any Postal barcode symbology; otherwise, returns false.

Parse(string, out SingleDecodeType)

Converts the string representation of a SingleDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.

public static bool Parse(string parsingType, out SingleDecodeType result)

Parameters

parsingType string

A string containing a SingleDecodeType in the format as “EAN8” or “EAN13” or “CodaBar”… to convert.

result SingleDecodeType

An actual SingleDecodeType returns, when conversion has completed successfully; otherwise it returns indefinite type: DecodeType.None.

Returns

bool

true if parsingType was converted successfully; otherwise, false.

ScanSets(params BaseDecodeType[])

Specify scan sets by barcodeTypes

public static BaseDecodeType ScanSets(params BaseDecodeType[] barcodeTypes)

Parameters

barcodeTypes BaseDecodeType[]

Array of single and multy decode types

Returns

BaseDecodeType

A multi decode type

TryParse(string, out SingleDecodeType)

Converts the string representation of a SingleDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.

public static bool TryParse(string parsingType, out SingleDecodeType result)

Parameters

parsingType string

A string containing a SingleDecodeType in the format as “EAN8” or “EAN13” or “CodaBar”… to convert.

result SingleDecodeType

An actual SingleDecodeType returns, when conversion has completed successfully; otherwise it returns indefinite type: DecodeType.None.

Returns

bool

true if parsingType was converted successfully; otherwise, false.

TryParse(string, out MultyDecodeType)

Converts the string representation of a MultyDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.

public static bool TryParse(string parsingType, out MultyDecodeType result)

Parameters

parsingType string

A string in the format as either “AllSupportedTypes” or “EAN8,EAN13,CodaBar” to convert.

result MultyDecodeType

An actual MultyDecodeType is returned, when conversion has completed successfully; otherwise it returns indefinite type: new MultyDecodeType(DecodeType.None)

Returns

bool

true if parsingType was converted successfully; otherwise, false.

 English