Class DecodeType
Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.8.0)
Specify the type of barcode to read.
public static class DecodeTypeInheritance
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 UsingFields
AllSupportedTypes
Specifies that data will be checked with all available symbologies
public static readonly MultyDecodeType AllSupportedTypesField Value
AustraliaPost
Specifies that the data should be decoded with Australia Post barcode specification
public static readonly SingleDecodeType AustraliaPostField Value
AustralianPosteParcel
Specifies that the data should be decoded with Australian Post Domestic eParcel Barcode barcode specification
public static readonly SingleDecodeType AustralianPosteParcelField Value
Aztec
Specifies that the data should be decoded with Aztec barcode specification
public static readonly SingleDecodeType AztecField Value
Codabar
Specifies that the data should be decoded with CODABAR barcode specification
public static readonly SingleDecodeType CodabarField Value
CodablockF
Specifies that the data should be decoded with CodablockF barcode specification
public static readonly SingleDecodeType CodablockFField Value
Code11
Specifies that the data should be decoded with CODE 11 barcode specification
public static readonly SingleDecodeType Code11Field Value
Code128
Specifies that the data should be decoded with CODE 128 barcode specification
public static readonly SingleDecodeType Code128Field Value
Code16K
Specifies that the data should be decoded with SCode16K barcode specification
public static readonly SingleDecodeType Code16KField Value
Code32
Specifies that the data should be decoded with Code32 barcode specification
public static readonly SingleDecodeType Code32Field Value
Code39
Specifies that the data should be decoded with Code 39 basic charset barcode specification: ISO/IEC 16388
public static readonly SingleDecodeType Code39Field Value
Code39FullASCII
Specifies that the data should be decoded with Code 39 full ASCII charset barcode specification: ISO/IEC 16388
public static readonly SingleDecodeType Code39FullASCIIField Value
Code93
Specifies that the data should be decoded with CODE 93 barcode specification
public static readonly SingleDecodeType Code93Field Value
CompactPdf417
Specifies that the data should be decoded with CompactPdf417 (Pdf417Truncated) barcode specification
public static readonly SingleDecodeType CompactPdf417Field Value
DataLogic2of5
Specifies that the data should be decoded with DataLogic 2 of 5 barcode specification
public static readonly SingleDecodeType DataLogic2of5Field Value
DataMatrix
Specifies that the data should be decoded with DataMatrix barcode symbology
public static readonly SingleDecodeType DataMatrixField Value
DatabarExpanded
Specifies that the data should be decoded with GS1 Databar expanded barcode specification
public static readonly SingleDecodeType DatabarExpandedField Value
DatabarExpandedStacked
Specifies that the data should be decoded with GS1 Databar expanded stacked barcode specification
public static readonly SingleDecodeType DatabarExpandedStackedField Value
DatabarLimited
Specifies that the data should be decoded with GS1 Databar limited barcode specification
public static readonly SingleDecodeType DatabarLimitedField Value
DatabarOmniDirectional
Specifies that the data should be decoded with GS1 Databar omni-directional barcode specification
public static readonly SingleDecodeType DatabarOmniDirectionalField Value
DatabarStacked
Specifies that the data should be decoded with GS1 Databar stacked barcode specification
public static readonly SingleDecodeType DatabarStackedField Value
DatabarStackedOmniDirectional
Specifies that the data should be decoded with GS1 Databar stacked omni-directional barcode specification
public static readonly SingleDecodeType DatabarStackedOmniDirectionalField Value
DatabarTruncated
Specifies that the data should be decoded with GS1 Databar truncated barcode specification
public static readonly SingleDecodeType DatabarTruncatedField Value
DeutschePostIdentcode
Specifies that the data should be decoded with DeutschePost Ident code barcode specification
public static readonly SingleDecodeType DeutschePostIdentcodeField Value
DeutschePostLeitcode
Specifies that the data should be decoded with DeutschePost Leit code barcode specification
public static readonly SingleDecodeType DeutschePostLeitcodeField Value
DotCode
Specifies that the data should be decoded with DotCode barcode specification
public static readonly SingleDecodeType DotCodeField Value
DutchKIX
Specifies that the data should be decoded with DotCode barcode specification
public static readonly SingleDecodeType DutchKIXField Value
EAN13
Specifies that the data should be decoded with EAN-13 barcode specification
public static readonly SingleDecodeType EAN13Field Value
EAN14
Specifies that the data should be decoded with EAN14 barcode specification
public static readonly SingleDecodeType EAN14Field Value
EAN8
Specifies that the data should be decoded with EAN-8 barcode specification
public static readonly SingleDecodeType EAN8Field Value
GS1Aztec
Specifies that the data should be decoded with GS1 Aztec barcode specification
public static readonly SingleDecodeType GS1AztecField Value
GS1Code128
Specifies that the data should be decoded with GS1 CODE 128 barcode specification
public static readonly SingleDecodeType GS1Code128Field Value
GS1CompositeBar
Specifies that the data should be decoded with GS1 Composite Bar barcode specification
public static readonly SingleDecodeType GS1CompositeBarField Value
GS1DataMatrix
Specifies that the data should be decoded with GS1DataMatrix barcode symbology
public static readonly SingleDecodeType GS1DataMatrixField Value
GS1DotCode
Specifies that the data should be decoded with GS1 DotCode barcode specification
public static readonly SingleDecodeType GS1DotCodeField Value
GS1HanXin
Specifies that the data should be decoded with GS1 Han Xin Code barcode specification
public static readonly SingleDecodeType GS1HanXinField Value
GS1MicroPdf417
Specifies that the data should be decoded with MicroPdf417 barcode specification
public static readonly SingleDecodeType GS1MicroPdf417Field Value
GS1QR
Specifies that the data should be decoded with GS1 QR barcode specification
public static readonly SingleDecodeType GS1QRField Value
HIBCAztecLIC
Specifies that the data should be decoded with HIBC LIC Aztec barcode specification
public static readonly SingleDecodeType HIBCAztecLICField Value
HIBCAztecPAS
Specifies that the data should be decoded with HIBC PAS Aztec barcode specification
public static readonly SingleDecodeType HIBCAztecPASField Value
HIBCCode128LIC
Specifies that the data should be decoded with HIBC LIC Code128 barcode specification
public static readonly SingleDecodeType HIBCCode128LICField Value
HIBCCode128PAS
Specifies that the data should be decoded with HIBC PAS Code128 barcode specification
public static readonly SingleDecodeType HIBCCode128PASField Value
HIBCCode39LIC
Specifies that the data should be decoded with HIBC LIC Code39 barcode specification
public static readonly SingleDecodeType HIBCCode39LICField Value
HIBCCode39PAS
Specifies that the data should be decoded with HIBC PAS Code39 barcode specification
public static readonly SingleDecodeType HIBCCode39PASField Value
HIBCDataMatrixLIC
Specifies that the data should be decoded with HIBC LIC DataMatrix barcode specification
public static readonly SingleDecodeType HIBCDataMatrixLICField Value
HIBCDataMatrixPAS
Specifies that the data should be decoded with HIBC PAS DataMatrix barcode specification
public static readonly SingleDecodeType HIBCDataMatrixPASField Value
HIBCQRLIC
Specifies that the data should be decoded with HIBC LIC QR barcode specification
public static readonly SingleDecodeType HIBCQRLICField Value
HIBCQRPAS
Specifies that the data should be decoded with HIBC PAS QR barcode specification
public static readonly SingleDecodeType HIBCQRPASField Value
HanXin
Specifies that the data should be decoded with Han Xin Code barcode specification
public static readonly SingleDecodeType HanXinField 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 IATA2of5Field Value
ISBN
Specifies that the data should be decoded with ISBN barcode specification
public static readonly SingleDecodeType ISBNField Value
ISMN
Specifies that the data should be decoded with ISMN barcode specification
public static readonly SingleDecodeType ISMNField Value
ISSN
Specifies that the data should be decoded with ISSN barcode specification
public static readonly SingleDecodeType ISSNField Value
ITF14
Specifies that the data should be decoded with ITF14 barcode specification
public static readonly SingleDecodeType ITF14Field Value
ITF6
Specifies that the data should be decoded with ITF6 barcode specification
public static readonly SingleDecodeType ITF6Field Value
Interleaved2of5
Specifies that the data should be decoded with INTERLEAVED 2 of 5 barcode specification
public static readonly SingleDecodeType Interleaved2of5Field Value
ItalianPost25
Specifies that the data should be decoded with Italian Post 25 barcode specification
public static readonly SingleDecodeType ItalianPost25Field Value
MSI
Specifies that the data should be decoded with MSI Plessey barcode specification
public static readonly SingleDecodeType MSIField Value
MacroPdf417
Specifies that the data should be decoded with MacroPdf417 barcode specification
public static readonly SingleDecodeType MacroPdf417Field Value
Mailmark
Specifies that the data should be decoded with Royal Mail Mailmark barcode specification.
public static readonly SingleDecodeType MailmarkField Value
Matrix2of5
Specifies that the data should be decoded with Matrix 2 of 5 barcode specification
public static readonly SingleDecodeType Matrix2of5Field Value
MaxiCode
Specifies that the data should be decoded with MaxiCode barcode specification
public static readonly SingleDecodeType MaxiCodeField Value
MicrE13B
Specifies that the data should be decoded with MICR E-13B barcode specification
public static readonly SingleDecodeType MicrE13BField Value
MicroPdf417
Specifies that the data should be decoded with MicroPdf417 barcode specification
public static readonly SingleDecodeType MicroPdf417Field Value
MicroQR
Specifies that the data should be decoded with MicroQR Code barcode specification
public static readonly SingleDecodeType MicroQRField Value
MostCommonTypes
Specifies that data will be checked with most commonly used symbologies
public static readonly MultyDecodeType MostCommonTypesField Value
None
Unspecified decode type.
public static readonly SingleDecodeType NoneField Value
OPC
Specifies that the data should be decoded with OPC barcode specification
public static readonly SingleDecodeType OPCField Value
OneCode
Specifies that the data should be decoded with USPS OneCode barcode specification
public static readonly SingleDecodeType OneCodeField 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 PZNField 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 PatchCodeField Value
Pdf417
Specifies that the data should be decoded with Pdf417 barcode symbology
public static readonly SingleDecodeType Pdf417Field 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 PharmacodeField Value
Planet
Specifies that the data should be decoded with Planet barcode specification
public static readonly SingleDecodeType PlanetField 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 PostalTypesField Value
Postnet
Specifies that the data should be decoded with Postnet barcode specification
public static readonly SingleDecodeType PostnetField Value
QR
Specifies that the data should be decoded with QR Code barcode specification
public static readonly SingleDecodeType QRField 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 RM4SCCField Value
RectMicroQR
Specifies that the data should be decoded with RectMicroQR (rMQR) Code barcode specification
public static readonly SingleDecodeType RectMicroQRField Value
SCC14
Specifies that the data should be decoded with SCC14 barcode specification
public static readonly SingleDecodeType SCC14Field Value
SSCC18
Specifies that the data should be decoded with SSCC18 barcode specification
public static readonly SingleDecodeType SSCC18Field Value
Standard2of5
Specifies that the data should be decoded with Standard 2 of 5 barcode specification
public static readonly SingleDecodeType Standard2of5Field Value
Supplement
Specifies that the data should be decoded with Supplement(EAN2, EAN5) barcode specification
public static readonly SingleDecodeType SupplementField Value
SwissPostParcel
Specifies that the data should be decoded with Swiss Post Parcel Barcode barcode specification
public static readonly SingleDecodeType SwissPostParcelField Value
Types1D
Specifies that data will be checked with all of 1D barcode symbologies
public static readonly MultyDecodeType Types1DField Value
Types2D
Specifies that data will be checked with all of 2D barcode symbologies
public static readonly MultyDecodeType Types2DField Value
UPCA
Specifies that the data should be decoded with UPC-A barcode specification
public static readonly SingleDecodeType UPCAField Value
UPCE
Specifies that the data should be decoded with UPC-E barcode specification
public static readonly SingleDecodeType UPCEField Value
VIN
Specifies that the data should be decoded with VIN (Vehicle Identification Number) barcode specification
public static readonly SingleDecodeType VINField 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.