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
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
AustraliaPost
Specifies that the data should be decoded with Australia Post barcode specification
public static readonly SingleDecodeType AustraliaPost
Field Value
AustralianPosteParcel
Specifies that the data should be decoded with Australian Post Domestic eParcel Barcode barcode specification
public static readonly SingleDecodeType AustralianPosteParcel
Field Value
Aztec
Specifies that the data should be decoded with Aztec barcode specification
public static readonly SingleDecodeType Aztec
Field Value
Codabar
Specifies that the data should be decoded with CODABAR barcode specification
public static readonly SingleDecodeType Codabar
Field Value
CodablockF
Specifies that the data should be decoded with CodablockF barcode specification
public static readonly SingleDecodeType CodablockF
Field Value
Code11
Specifies that the data should be decoded with CODE 11 barcode specification
public static readonly SingleDecodeType Code11
Field Value
Code128
Specifies that the data should be decoded with CODE 128 barcode specification
public static readonly SingleDecodeType Code128
Field Value
Code16K
Specifies that the data should be decoded with SCode16K barcode specification
public static readonly SingleDecodeType Code16K
Field Value
Code32
Specifies that the data should be decoded with Code32 barcode specification
public static readonly SingleDecodeType Code32
Field Value
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
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
Code93
Specifies that the data should be decoded with CODE 93 barcode specification
public static readonly SingleDecodeType Code93
Field Value
CompactPdf417
Specifies that the data should be decoded with CompactPdf417 (Pdf417Truncated) barcode specification
public static readonly SingleDecodeType CompactPdf417
Field Value
DataLogic2of5
Specifies that the data should be decoded with DataLogic 2 of 5 barcode specification
public static readonly SingleDecodeType DataLogic2of5
Field Value
DataMatrix
Specifies that the data should be decoded with DataMatrix barcode symbology
public static readonly SingleDecodeType DataMatrix
Field Value
DatabarExpanded
Specifies that the data should be decoded with GS1 Databar expanded barcode specification
public static readonly SingleDecodeType DatabarExpanded
Field Value
DatabarExpandedStacked
Specifies that the data should be decoded with GS1 Databar expanded stacked barcode specification
public static readonly SingleDecodeType DatabarExpandedStacked
Field Value
DatabarLimited
Specifies that the data should be decoded with GS1 Databar limited barcode specification
public static readonly SingleDecodeType DatabarLimited
Field Value
DatabarOmniDirectional
Specifies that the data should be decoded with GS1 Databar omni-directional barcode specification
public static readonly SingleDecodeType DatabarOmniDirectional
Field Value
DatabarStacked
Specifies that the data should be decoded with GS1 Databar stacked barcode specification
public static readonly SingleDecodeType DatabarStacked
Field Value
DatabarStackedOmniDirectional
Specifies that the data should be decoded with GS1 Databar stacked omni-directional barcode specification
public static readonly SingleDecodeType DatabarStackedOmniDirectional
Field Value
DatabarTruncated
Specifies that the data should be decoded with GS1 Databar truncated barcode specification
public static readonly SingleDecodeType DatabarTruncated
Field Value
DeutschePostIdentcode
Specifies that the data should be decoded with DeutschePost Ident code barcode specification
public static readonly SingleDecodeType DeutschePostIdentcode
Field Value
DeutschePostLeitcode
Specifies that the data should be decoded with DeutschePost Leit code barcode specification
public static readonly SingleDecodeType DeutschePostLeitcode
Field Value
DotCode
Specifies that the data should be decoded with DotCode barcode specification
public static readonly SingleDecodeType DotCode
Field Value
DutchKIX
Specifies that the data should be decoded with DotCode barcode specification
public static readonly SingleDecodeType DutchKIX
Field Value
EAN13
Specifies that the data should be decoded with EAN-13 barcode specification
public static readonly SingleDecodeType EAN13
Field Value
EAN14
Specifies that the data should be decoded with EAN14 barcode specification
public static readonly SingleDecodeType EAN14
Field Value
EAN8
Specifies that the data should be decoded with EAN-8 barcode specification
public static readonly SingleDecodeType EAN8
Field Value
GS1Aztec
Specifies that the data should be decoded with GS1 Aztec barcode specification
public static readonly SingleDecodeType GS1Aztec
Field Value
GS1Code128
Specifies that the data should be decoded with GS1 CODE 128 barcode specification
public static readonly SingleDecodeType GS1Code128
Field Value
GS1CompositeBar
Specifies that the data should be decoded with GS1 Composite Bar barcode specification
public static readonly SingleDecodeType GS1CompositeBar
Field Value
GS1DataMatrix
Specifies that the data should be decoded with GS1DataMatrix barcode symbology
public static readonly SingleDecodeType GS1DataMatrix
Field Value
GS1DotCode
Specifies that the data should be decoded with GS1 DotCode barcode specification
public static readonly SingleDecodeType GS1DotCode
Field Value
GS1HanXin
Specifies that the data should be decoded with GS1 Han Xin Code barcode specification
public static readonly SingleDecodeType GS1HanXin
Field Value
GS1MicroPdf417
Specifies that the data should be decoded with MicroPdf417 barcode specification
public static readonly SingleDecodeType GS1MicroPdf417
Field Value
GS1QR
Specifies that the data should be decoded with GS1 QR barcode specification
public static readonly SingleDecodeType GS1QR
Field Value
HIBCAztecLIC
Specifies that the data should be decoded with HIBC LIC Aztec barcode specification
public static readonly SingleDecodeType HIBCAztecLIC
Field Value
HIBCAztecPAS
Specifies that the data should be decoded with HIBC PAS Aztec barcode specification
public static readonly SingleDecodeType HIBCAztecPAS
Field Value
HIBCCode128LIC
Specifies that the data should be decoded with HIBC LIC Code128 barcode specification
public static readonly SingleDecodeType HIBCCode128LIC
Field Value
HIBCCode128PAS
Specifies that the data should be decoded with HIBC PAS Code128 barcode specification
public static readonly SingleDecodeType HIBCCode128PAS
Field Value
HIBCCode39LIC
Specifies that the data should be decoded with HIBC LIC Code39 barcode specification
public static readonly SingleDecodeType HIBCCode39LIC
Field Value
HIBCCode39PAS
Specifies that the data should be decoded with HIBC PAS Code39 barcode specification
public static readonly SingleDecodeType HIBCCode39PAS
Field Value
HIBCDataMatrixLIC
Specifies that the data should be decoded with HIBC LIC DataMatrix barcode specification
public static readonly SingleDecodeType HIBCDataMatrixLIC
Field Value
HIBCDataMatrixPAS
Specifies that the data should be decoded with HIBC PAS DataMatrix barcode specification
public static readonly SingleDecodeType HIBCDataMatrixPAS
Field Value
HIBCQRLIC
Specifies that the data should be decoded with HIBC LIC QR barcode specification
public static readonly SingleDecodeType HIBCQRLIC
Field Value
HIBCQRPAS
Specifies that the data should be decoded with HIBC PAS QR barcode specification
public static readonly SingleDecodeType HIBCQRPAS
Field Value
HanXin
Specifies that the data should be decoded with Han Xin Code barcode specification
public static readonly SingleDecodeType HanXin
Field Value
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
ISBN
Specifies that the data should be decoded with ISBN barcode specification
public static readonly SingleDecodeType ISBN
Field Value
ISMN
Specifies that the data should be decoded with ISMN barcode specification
public static readonly SingleDecodeType ISMN
Field Value
ISSN
Specifies that the data should be decoded with ISSN barcode specification
public static readonly SingleDecodeType ISSN
Field Value
ITF14
Specifies that the data should be decoded with ITF14 barcode specification
public static readonly SingleDecodeType ITF14
Field Value
ITF6
Specifies that the data should be decoded with ITF6 barcode specification
public static readonly SingleDecodeType ITF6
Field Value
Interleaved2of5
Specifies that the data should be decoded with INTERLEAVED 2 of 5 barcode specification
public static readonly SingleDecodeType Interleaved2of5
Field Value
ItalianPost25
Specifies that the data should be decoded with Italian Post 25 barcode specification
public static readonly SingleDecodeType ItalianPost25
Field Value
MSI
Specifies that the data should be decoded with MSI Plessey barcode specification
public static readonly SingleDecodeType MSI
Field Value
MacroPdf417
Specifies that the data should be decoded with MacroPdf417 barcode specification
public static readonly SingleDecodeType MacroPdf417
Field Value
Mailmark
Specifies that the data should be decoded with Royal Mail Mailmark barcode specification.
public static readonly SingleDecodeType Mailmark
Field Value
Matrix2of5
Specifies that the data should be decoded with Matrix 2 of 5 barcode specification
public static readonly SingleDecodeType Matrix2of5
Field Value
MaxiCode
Specifies that the data should be decoded with MaxiCode barcode specification
public static readonly SingleDecodeType MaxiCode
Field Value
MicrE13B
Specifies that the data should be decoded with MICR E-13B barcode specification
public static readonly SingleDecodeType MicrE13B
Field Value
MicroPdf417
Specifies that the data should be decoded with MicroPdf417 barcode specification
public static readonly SingleDecodeType MicroPdf417
Field Value
MicroQR
Specifies that the data should be decoded with MicroQR Code barcode specification
public static readonly SingleDecodeType MicroQR
Field Value
MostCommonTypes
Specifies that data will be checked with most commonly used symbologies
public static readonly MultyDecodeType MostCommonTypes
Field Value
None
Unspecified decode type.
public static readonly SingleDecodeType None
Field Value
OPC
Specifies that the data should be decoded with OPC barcode specification
public static readonly SingleDecodeType OPC
Field Value
OneCode
Specifies that the data should be decoded with USPS OneCode barcode specification
public static readonly SingleDecodeType OneCode
Field Value
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
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
Pdf417
Specifies that the data should be decoded with Pdf417 barcode symbology
public static readonly SingleDecodeType Pdf417
Field Value
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
Planet
Specifies that the data should be decoded with Planet barcode specification
public static readonly SingleDecodeType Planet
Field Value
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
Postnet
Specifies that the data should be decoded with Postnet barcode specification
public static readonly SingleDecodeType Postnet
Field Value
QR
Specifies that the data should be decoded with QR Code barcode specification
public static readonly SingleDecodeType QR
Field Value
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
RectMicroQR
Specifies that the data should be decoded with RectMicroQR (rMQR) Code barcode specification
public static readonly SingleDecodeType RectMicroQR
Field Value
SCC14
Specifies that the data should be decoded with SCC14 barcode specification
public static readonly SingleDecodeType SCC14
Field Value
SSCC18
Specifies that the data should be decoded with SSCC18 barcode specification
public static readonly SingleDecodeType SSCC18
Field Value
Standard2of5
Specifies that the data should be decoded with Standard 2 of 5 barcode specification
public static readonly SingleDecodeType Standard2of5
Field Value
Supplement
Specifies that the data should be decoded with Supplement(EAN2, EAN5) barcode specification
public static readonly SingleDecodeType Supplement
Field Value
SwissPostParcel
Specifies that the data should be decoded with Swiss Post Parcel Barcode barcode specification
public static readonly SingleDecodeType SwissPostParcel
Field Value
Types1D
Specifies that data will be checked with all of 1D barcode symbologies
public static readonly MultyDecodeType Types1D
Field Value
Types2D
Specifies that data will be checked with all of 2D barcode symbologies
public static readonly MultyDecodeType Types2D
Field Value
UPCA
Specifies that the data should be decoded with UPC-A barcode specification
public static readonly SingleDecodeType UPCA
Field Value
UPCE
Specifies that the data should be decoded with UPC-E barcode specification
public static readonly SingleDecodeType UPCE
Field Value
VIN
Specifies that the data should be decoded with VIN (Vehicle Identification Number) barcode specification
public static readonly SingleDecodeType VIN
Field Value
Properties
AllSupportedTypesArray
Gets an array that represents AllSupportedTypes
public static SingleDecodeType[] AllSupportedTypesArray { get; }
Property Value
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
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
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
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
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
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
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
true if parsingType was converted successfully; otherwise, false.