DecodeType
DecodeType class
Namespace: Aspose.Barcode.Recognition
Specify the type of barcode to read. This sample shows how to detect Code39 and Code128 barcodes.
Methods
| Name | Static | Description |
|---|---|---|
| containsAny | Yes | Determines if the BaseDecodeType array contains specified barcode symbology |
| is1D | Yes | Determines if the specified BaseDecodeType contains any 1D barcode symbology |
| is2D | Yes | Determines if the specified BaseDecodeType contains any 2D barcode symbology |
| isPostal | Yes | Determines if the specified BaseDecodeType contains any Postal barcode symbology |
Constants
| Name | Value | Description |
|---|---|---|
| ALL_SUPPORTED_TYPES | 99 | Specifies that data will be checked with all available symbologies |
| AUSTRALIA_POST | 37 | Specifies that the data should be decoded with { Australia Post} barcode specification |
| AUSTRALIAN_POSTE_PARCEL | 50 | Specifies that the data should be decoded with { Australian Post Domestic eParcel Barcode} barcode specification |
| AZTEC | 33 | Specifies that the data should be decoded with { Aztec} barcode specification |
| CODABAR | 0 | Specifies that the data should be decoded with { CODABAR} barcode specification |
| CODABLOCK_F | 65 | Specifies that the data should be decoded with { CodablockF} barcode specification |
| CODE_11 | 1 | Specifies that the data should be decoded with { CODE 11} barcode specification |
| CODE_128 | 6 | Specifies that the data should be decoded with { CODE 128} barcode specification |
| CODE_16_K | 52 | Specifies that the data should be decoded with { SCode16K} barcode specification |
| CODE_32 | 61 | Specifies that the data should be decoded with { Code32} blank specification |
| CODE_39 | 2 | Specifies that the data should be decoded with basic charset barcode specification: ISO/IEC 16388 |
| CODE_39_FULL_ASCII | 3 | Specifies that the data should be decoded with full ASCII charset barcode specification: ISO/IEC 16388 |
| CODE_93 | 5 | Specifies that the data should be decoded with barcode specification |
| COMPACT_PDF_417 | 57 | Specifies that the data should be decoded with { CompactPdf417} (Pdf417Truncated) barcode specification |
| DATA_LOGIC_2_OF_5 | 62 | Specifies that the data should be decoded with { DataLogic 2 of 5} blank specification |
| DATA_MATRIX | 30 | Specifies that the data should be decoded with { DataMatrix} barcode symbology |
| DATABAR_EXPANDED | 45 | Specifies that the data should be decoded with { GS1 DATABAR expanded} barcode specification |
| DATABAR_EXPANDED_STACKED | 55 | Specifies that the data should be decoded with { GS1 DATABAR expanded stacked} barcode specification |
| DATABAR_LIMITED | 44 | Specifies that the data should be decoded with { GS1 DATABAR limited} barcode specification |
| DATABAR_OMNI_DIRECTIONAL | 42 | Specifies that the data should be decoded with { GS1 DATABAR omni-directional} barcode specification |
| DATABAR_STACKED | 54 | Specifies that the data should be decoded with { GS1 DATABAR stacked} barcode specification |
| DATABAR_STACKED_OMNI_DIRECTIONAL | 53 | Specifies that the data should be decoded with { GS1 DATABAR stacked omni-directional} barcode specification |
| DATABAR_TRUNCATED | 43 | Specifies that the data should be decoded with { GS1 DATABAR truncated} barcode specification |
| DEUTSCHE_POST_IDENTCODE | 25 | Specifies that the data should be decoded with { DeutschePost Ident code} barcode specification |
| DEUTSCHE_POST_LEITCODE | 26 | Specifies that the data should be decoded with { DeutschePost Leit code} barcode specification |
| DOT_CODE | 63 | Specifies that the data should be decoded with { DotCode} blank specification |
| DUTCH_KIX | 64 | Specifies that the data should be decoded with { DotCode} blank specification |
| EAN_13 | 9 | Specifies that the data should be decoded with { EAN-13} barcode specification |
| EAN_14 | 10 | Specifies that the data should be decoded with { EAN14} barcode specification |
| EAN_8 | 8 | Specifies that the data should be decoded with { EAN-8} barcode specification |
| GS_1_AZTEC | 81 | Specifies that the data should be decoded with barcode specification |
| GS_1_CODE_128 | 7 | Specifies that the data should be decoded with { GS1 CODE 128} barcode specification |
| GS_1_COMPOSITE_BAR | 80 | Specifies that the data should be decoded with barcode specification |
| GS_1_DATA_MATRIX | 31 | Specifies that the data should be decoded with { GS1DataMatrix} barcode symbology |
| GS_1_DOT_CODE | 77 | Specifies that the data should be decoded with blank specification |
| GS_1_HAN_XIN | 79 | Specifies that the data should be decoded with Han Xin Code blank specification |
| GS_1_MICRO_PDF_417 | 82 | Specifies that the data should be decoded with MicroPdf417 barcode specification |
| GS_1_QR | 58 | Specifies that the data should be decoded with { GS1 QR} barcode specification |
| HAN_XIN | 78 | Specifies that the data should be decoded with Han Xin Code blank specification |
| HIBC_AZTEC_LIC | 69 | Specifies that the data should be decoded with blank specification |
| HIBC_AZTEC_PAS | 74 | Specifies that the data should be decoded with blank specification |
| HIBC_CODE_128_LIC | 68 | Specifies that the data should be decoded with blank specification |
| HIBC_CODE_128_PAS | 73 | Specifies that the data should be decoded with blank specification |
| HIBC_CODE_39_LIC | 67 | Specifies that the data should be decoded with blank specification |
| HIBC_CODE_39_PAS | 72 | Specifies that the data should be decoded with blank specification |
| HIBC_DATA_MATRIX_LIC | 70 | Specifies that the data should be decoded with blank specification |
| HIBC_DATA_MATRIX_PAS | 75 | Specifies that the data should be decoded with blank specification |
| HIBCQRLIC | 71 | Specifies that the data should be decoded with blank specification |
| HIBCQRPAS | 76 | Specifies that the data should be decoded with blank specification |
| IATA_2_OF_5 | 20 | 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. |
| INTERLEAVED_2_OF_5 | 17 | Specifies that the data should be decoded with { INTERLEAVED 2 of 5} barcode specification |
| ISBN | 15 | Specifies that the data should be decoded with { ISBN} barcode specification |
| ISMN | 48 | Specifies that the data should be decoded with { ISMN} barcode specification |
| ISSN | 47 | Specifies that the data should be decoded with { ISSN} barcode specification |
| ITALIAN_POST_25 | 19 | Specifies that the data should be decoded with { Italian Post 25} barcode specification |
| ITF_14 | 21 | Specifies that the data should be decoded with { ITF14} barcode specification |
| ITF_6 | 22 | Specifies that the data should be decoded with { ITF6} barcode specification |
| MACRO_PDF_417 | 35 | Specifies that the data should be decoded with { MacroPdf417} barcode specification |
| MAILMARK | 66 | Specifies that the data should be decoded with Royal Mail Mailmark barcode specification. |
| MATRIX_2_OF_5 | 18 | Specifies that the data should be decoded with { Matrix 2 of 5} barcode specification |
| MAXI_CODE | 59 | Specifies that the data should be decoded with { MaxiCode} barcode specification |
| MICR_E_13_B | 60 | Specifies that the data should be decoded with { MICR E-13B} blank specification |
| MICRO_PDF_417 | 36 | Specifies that the data should be decoded with { MicroPdf417} barcode specification |
| MICRO_QR | 56 | Specifies that the data should be decoded with { MicroQR Code} barcode specification |
| MOST_COMMON_TYPES | 96 | Specifies that data will be checked with most commonly used symbologies |
| MSI | 23 | Specifies that the data should be decoded with { MSI Plessey} barcode specification |
| NONE | -1 | Unspecified decode type. |
| ONE_CODE | 40 | Specifies that the data should be decoded with USPS { OneCode} barcode specification |
| OPC | 27 | Specifies that the data should be decoded with { OPC} barcode specification |
| PATCH_CODE | 46 | Specifies that the data should be decoded with { Patch code} barcode specification. Barcode symbology is used for automated scanning |
| PDF_417 | 34 | Specifies that the data should be decoded with { Pdf417} barcode symbology |
| PHARMACODE | 29 | Specifies that the data should be decoded with { Pharmacode} barcode. This symbology is also known as Pharmaceutical BINARY Code |
| PLANET | 39 | Specifies that the data should be decoded with { Planet} barcode specification |
| POSTAL_TYPES | 95 | Specifies that data will be checked with all of 1.5D POSTAL barcode symbologies, like Planet, Postnet, AustraliaPost, OneCode, RM4SCC, DutchKIX |
| POSTNET | 38 | Specifies that the data should be decoded with { Postnet} barcode specification |
| PZN | 28 | Specifies that the data should be decoded with { PZN} barcode specification. This symbology is also known as Pharma Zentral Nummer |
| QR | 32 | Specifies that the data should be decoded with { QR Code} barcode specification |
| RECT_MICRO_QR | 83 | Specifies that the data should be decoded with RectMicroQR (rMQR) Code barcode specification |
| RM_4_SCC | 41 | 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. |
| SCC_14 | 11 | Specifies that the data should be decoded with { SCC14} barcode specification |
| SSCC_18 | 12 | Specifies that the data should be decoded with { SSCC18} barcode specification |
| STANDARD_2_OF_5 | 16 | Specifies that the data should be decoded with { Standard 2 of 5} barcode specification |
| SUPPLEMENT | 49 | Specifies that the data should be decoded with { Supplement(EAN2, EAN5)} barcode specification |
| SWISS_POST_PARCEL | 51 | Specifies that the data should be decoded with { Swiss Post Parcel Barcode} barcode specification |
| TYPES_1D | 97 | Specifies that data will be checked with all of 1D barcode symbologies |
| TYPES_2D | 98 | Specifies that data will be checked with all of 2D barcode symbologies |
| UPCA | 13 | Specifies that the data should be decoded with { UPC-A} barcode specification |
| UPCE | 14 | Specifies that the data should be decoded with { UPC-E} barcode specification |
| VIN | 24 | Specifies that the data should be decoded with { VIN} (Vehicle Identification Number) barcode specification |
containsAnycontainsAny(int $expectedDecodeType, array $decodeTypes) (static)
Determines if the BaseDecodeType array contains specified barcode symbology
| Parameter | Type | Description |
|---|---|---|
$expectedDecodeType | int | |
$decodeTypes | array |
Returns: bool
is1Dis1D(int $symbology) (static)
Determines if the specified BaseDecodeType contains any 1D barcode symbology
| Parameter | Type | Description |
|---|---|---|
$symbology | int |
Returns: bool true if BaseDecodeType contains any 1D barcode symbology; otherwise, returns false.
is2Dis2D(int $symbology) (static)
Determines if the specified BaseDecodeType contains any 2D barcode symbology
| Parameter | Type | Description |
|---|---|---|
$symbology | int |
Returns: bool Returns true if BaseDecodeType contains any 2D barcode symbology; otherwise, returns false.
isPostalisPostal(int $symbology) (static)
Determines if the specified BaseDecodeType contains any Postal barcode symbology
| Parameter | Type | Description |
|---|---|---|
$symbology | int |
Returns: bool Returns true if BaseDecodeType contains any Postal barcode symbology; otherwise, returns false.
ALL_SUPPORTED_TYPES
Value: 99
Specifies that data will be checked with all available symbologies
AUSTRALIA_POST
Value: 37
Specifies that the data should be decoded with { Australia Post} barcode specification
AUSTRALIAN_POSTE_PARCEL
Value: 50
Specifies that the data should be decoded with { Australian Post Domestic eParcel Barcode} barcode specification
AZTEC
Value: 33
Specifies that the data should be decoded with { Aztec} barcode specification
CODABAR
Value: 0
Specifies that the data should be decoded with { CODABAR} barcode specification
CODABLOCK_F
Value: 65
Specifies that the data should be decoded with { CodablockF} barcode specification
CODE_11
Value: 1
Specifies that the data should be decoded with { CODE 11} barcode specification
CODE_128
Value: 6
Specifies that the data should be decoded with { CODE 128} barcode specification
CODE_16_K
Value: 52
Specifies that the data should be decoded with { SCode16K} barcode specification
CODE_32
Value: 61
Specifies that the data should be decoded with { Code32} blank specification
CODE_39
Value: 2
Specifies that the data should be decoded with basic charset barcode specification: ISO/IEC 16388
CODE_39_FULL_ASCII
Value: 3
Specifies that the data should be decoded with full ASCII charset barcode specification: ISO/IEC 16388
CODE_93
Value: 5
Specifies that the data should be decoded with barcode specification
COMPACT_PDF_417
Value: 57
Specifies that the data should be decoded with { CompactPdf417} (Pdf417Truncated) barcode specification
DATA_LOGIC_2_OF_5
Value: 62
Specifies that the data should be decoded with { DataLogic 2 of 5} blank specification
DATA_MATRIX
Value: 30
Specifies that the data should be decoded with { DataMatrix} barcode symbology
DATABAR_EXPANDED
Value: 45
Specifies that the data should be decoded with { GS1 DATABAR expanded} barcode specification
DATABAR_EXPANDED_STACKED
Value: 55
Specifies that the data should be decoded with { GS1 DATABAR expanded stacked} barcode specification
DATABAR_LIMITED
Value: 44
Specifies that the data should be decoded with { GS1 DATABAR limited} barcode specification
DATABAR_OMNI_DIRECTIONAL
Value: 42
Specifies that the data should be decoded with { GS1 DATABAR omni-directional} barcode specification
DATABAR_STACKED
Value: 54
Specifies that the data should be decoded with { GS1 DATABAR stacked} barcode specification
DATABAR_STACKED_OMNI_DIRECTIONAL
Value: 53
Specifies that the data should be decoded with { GS1 DATABAR stacked omni-directional} barcode specification
DATABAR_TRUNCATED
Value: 43
Specifies that the data should be decoded with { GS1 DATABAR truncated} barcode specification
DEUTSCHE_POST_IDENTCODE
Value: 25
Specifies that the data should be decoded with { DeutschePost Ident code} barcode specification
DEUTSCHE_POST_LEITCODE
Value: 26
Specifies that the data should be decoded with { DeutschePost Leit code} barcode specification
DOT_CODE
Value: 63
Specifies that the data should be decoded with { DotCode} blank specification
DUTCH_KIX
Value: 64
Specifies that the data should be decoded with { DotCode} blank specification
EAN_13
Value: 9
Specifies that the data should be decoded with { EAN-13} barcode specification
EAN_14
Value: 10
Specifies that the data should be decoded with { EAN14} barcode specification
EAN_8
Value: 8
Specifies that the data should be decoded with { EAN-8} barcode specification
GS_1_AZTEC
Value: 81
Specifies that the data should be decoded with barcode specification
GS_1_CODE_128
Value: 7
Specifies that the data should be decoded with { GS1 CODE 128} barcode specification
GS_1_COMPOSITE_BAR
Value: 80
Specifies that the data should be decoded with barcode specification
GS_1_DATA_MATRIX
Value: 31
Specifies that the data should be decoded with { GS1DataMatrix} barcode symbology
GS_1_DOT_CODE
Value: 77
Specifies that the data should be decoded with blank specification
GS_1_HAN_XIN
Value: 79
Specifies that the data should be decoded with Han Xin Code blank specification
GS_1_MICRO_PDF_417
Value: 82
Specifies that the data should be decoded with MicroPdf417 barcode specification
GS_1_QR
Value: 58
Specifies that the data should be decoded with { GS1 QR} barcode specification
HAN_XIN
Value: 78
Specifies that the data should be decoded with Han Xin Code blank specification
HIBC_AZTEC_LIC
Value: 69
Specifies that the data should be decoded with blank specification
HIBC_AZTEC_PAS
Value: 74
Specifies that the data should be decoded with blank specification
HIBC_CODE_128_LIC
Value: 68
Specifies that the data should be decoded with blank specification
HIBC_CODE_128_PAS
Value: 73
Specifies that the data should be decoded with blank specification
HIBC_CODE_39_LIC
Value: 67
Specifies that the data should be decoded with blank specification
HIBC_CODE_39_PAS
Value: 72
Specifies that the data should be decoded with blank specification
HIBC_DATA_MATRIX_LIC
Value: 70
Specifies that the data should be decoded with blank specification
HIBC_DATA_MATRIX_PAS
Value: 75
Specifies that the data should be decoded with blank specification
HIBCQRLIC
Value: 71
Specifies that the data should be decoded with blank specification
HIBCQRPAS
Value: 76
Specifies that the data should be decoded with blank specification
IATA_2_OF_5
Value: 20
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.
INTERLEAVED_2_OF_5
Value: 17
Specifies that the data should be decoded with { INTERLEAVED 2 of 5} barcode specification
ISBN
Value: 15
Specifies that the data should be decoded with { ISBN} barcode specification
ISMN
Value: 48
Specifies that the data should be decoded with { ISMN} barcode specification
ISSN
Value: 47
Specifies that the data should be decoded with { ISSN} barcode specification
ITALIAN_POST_25
Value: 19
Specifies that the data should be decoded with { Italian Post 25} barcode specification
ITF_14
Value: 21
Specifies that the data should be decoded with { ITF14} barcode specification
ITF_6
Value: 22
Specifies that the data should be decoded with { ITF6} barcode specification
MACRO_PDF_417
Value: 35
Specifies that the data should be decoded with { MacroPdf417} barcode specification
MAILMARK
Value: 66
Specifies that the data should be decoded with Royal Mail Mailmark barcode specification.
MATRIX_2_OF_5
Value: 18
Specifies that the data should be decoded with { Matrix 2 of 5} barcode specification
MAXI_CODE
Value: 59
Specifies that the data should be decoded with { MaxiCode} barcode specification
MICR_E_13_B
Value: 60
Specifies that the data should be decoded with { MICR E-13B} blank specification
MICRO_PDF_417
Value: 36
Specifies that the data should be decoded with { MicroPdf417} barcode specification
MICRO_QR
Value: 56
Specifies that the data should be decoded with { MicroQR Code} barcode specification
MOST_COMMON_TYPES
Value: 96
Specifies that data will be checked with most commonly used symbologies
MSI
Value: 23
Specifies that the data should be decoded with { MSI Plessey} barcode specification
NONE
Value: -1
Unspecified decode type.
ONE_CODE
Value: 40
Specifies that the data should be decoded with USPS { OneCode} barcode specification
OPC
Value: 27
Specifies that the data should be decoded with { OPC} barcode specification
PATCH_CODE
Value: 46
Specifies that the data should be decoded with { Patch code} barcode specification. Barcode symbology is used for automated scanning
PDF_417
Value: 34
Specifies that the data should be decoded with { Pdf417} barcode symbology
PHARMACODE
Value: 29
Specifies that the data should be decoded with { Pharmacode} barcode. This symbology is also known as Pharmaceutical BINARY Code
PLANET
Value: 39
Specifies that the data should be decoded with { Planet} barcode specification
POSTAL_TYPES
Value: 95
Specifies that data will be checked with all of 1.5D POSTAL barcode symbologies, like Planet, Postnet, AustraliaPost, OneCode, RM4SCC, DutchKIX
POSTNET
Value: 38
Specifies that the data should be decoded with { Postnet} barcode specification
PZN
Value: 28
Specifies that the data should be decoded with { PZN} barcode specification. This symbology is also known as Pharma Zentral Nummer
QR
Value: 32
Specifies that the data should be decoded with { QR Code} barcode specification
RECT_MICRO_QR
Value: 83
Specifies that the data should be decoded with RectMicroQR (rMQR) Code barcode specification
RM_4_SCC
Value: 41
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.
SCC_14
Value: 11
Specifies that the data should be decoded with { SCC14} barcode specification
SSCC_18
Value: 12
Specifies that the data should be decoded with { SSCC18} barcode specification
STANDARD_2_OF_5
Value: 16
Specifies that the data should be decoded with { Standard 2 of 5} barcode specification
SUPPLEMENT
Value: 49
Specifies that the data should be decoded with { Supplement(EAN2, EAN5)} barcode specification
SWISS_POST_PARCEL
Value: 51
Specifies that the data should be decoded with { Swiss Post Parcel Barcode} barcode specification
TYPES_1D
Value: 97
Specifies that data will be checked with all of 1D barcode symbologies
TYPES_2D
Value: 98
Specifies that data will be checked with all of 2D barcode symbologies
UPCA
Value: 13
Specifies that the data should be decoded with { UPC-A} barcode specification
UPCE
Value: 14
Specifies that the data should be decoded with { UPC-E} barcode specification
VIN
Value: 24
Specifies that the data should be decoded with { VIN} (Vehicle Identification Number) barcode specification