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

NameStaticDescription
containsAnyYesDetermines if the BaseDecodeType array contains specified barcode symbology
is1DYesDetermines if the specified BaseDecodeType contains any 1D barcode symbology
is2DYesDetermines if the specified BaseDecodeType contains any 2D barcode symbology
isPostalYesDetermines if the specified BaseDecodeType contains any Postal barcode symbology

Constants

NameValueDescription
ALL_SUPPORTED_TYPES99Specifies that data will be checked with all available symbologies
AUSTRALIA_POST37Specifies that the data should be decoded with { Australia Post} barcode specification
AUSTRALIAN_POSTE_PARCEL50Specifies that the data should be decoded with { Australian Post Domestic eParcel Barcode} barcode specification
AZTEC33Specifies that the data should be decoded with { Aztec} barcode specification
CODABAR0Specifies that the data should be decoded with { CODABAR} barcode specification
CODABLOCK_F65Specifies that the data should be decoded with { CodablockF} barcode specification
CODE_111Specifies that the data should be decoded with { CODE 11} barcode specification
CODE_1286Specifies that the data should be decoded with { CODE 128} barcode specification
CODE_16_K52Specifies that the data should be decoded with { SCode16K} barcode specification
CODE_3261Specifies that the data should be decoded with { Code32} blank specification
CODE_392Specifies that the data should be decoded with basic charset barcode specification: ISO/IEC 16388
CODE_39_FULL_ASCII3Specifies that the data should be decoded with full ASCII charset barcode specification: ISO/IEC 16388
CODE_935Specifies that the data should be decoded with barcode specification
COMPACT_PDF_41757Specifies that the data should be decoded with { CompactPdf417} (Pdf417Truncated) barcode specification
DATA_LOGIC_2_OF_562Specifies that the data should be decoded with { DataLogic 2 of 5} blank specification
DATA_MATRIX30Specifies that the data should be decoded with { DataMatrix} barcode symbology
DATABAR_EXPANDED45Specifies that the data should be decoded with { GS1 DATABAR expanded} barcode specification
DATABAR_EXPANDED_STACKED55Specifies that the data should be decoded with { GS1 DATABAR expanded stacked} barcode specification
DATABAR_LIMITED44Specifies that the data should be decoded with { GS1 DATABAR limited} barcode specification
DATABAR_OMNI_DIRECTIONAL42Specifies that the data should be decoded with { GS1 DATABAR omni-directional} barcode specification
DATABAR_STACKED54Specifies that the data should be decoded with { GS1 DATABAR stacked} barcode specification
DATABAR_STACKED_OMNI_DIRECTIONAL53Specifies that the data should be decoded with { GS1 DATABAR stacked omni-directional} barcode specification
DATABAR_TRUNCATED43Specifies that the data should be decoded with { GS1 DATABAR truncated} barcode specification
DEUTSCHE_POST_IDENTCODE25Specifies that the data should be decoded with { DeutschePost Ident code} barcode specification
DEUTSCHE_POST_LEITCODE26Specifies that the data should be decoded with { DeutschePost Leit code} barcode specification
DOT_CODE63Specifies that the data should be decoded with { DotCode} blank specification
DUTCH_KIX64Specifies that the data should be decoded with { DotCode} blank specification
EAN_139Specifies that the data should be decoded with { EAN-13} barcode specification
EAN_1410Specifies that the data should be decoded with { EAN14} barcode specification
EAN_88Specifies that the data should be decoded with { EAN-8} barcode specification
GS_1_AZTEC81Specifies that the data should be decoded with barcode specification
GS_1_CODE_1287Specifies that the data should be decoded with { GS1 CODE 128} barcode specification
GS_1_COMPOSITE_BAR80Specifies that the data should be decoded with barcode specification
GS_1_DATA_MATRIX31Specifies that the data should be decoded with { GS1DataMatrix} barcode symbology
GS_1_DOT_CODE77Specifies that the data should be decoded with blank specification
GS_1_HAN_XIN79Specifies that the data should be decoded with Han Xin Code blank specification
GS_1_MICRO_PDF_41782Specifies that the data should be decoded with MicroPdf417 barcode specification
GS_1_QR58Specifies that the data should be decoded with { GS1 QR} barcode specification
HAN_XIN78Specifies that the data should be decoded with Han Xin Code blank specification
HIBC_AZTEC_LIC69Specifies that the data should be decoded with blank specification
HIBC_AZTEC_PAS74Specifies that the data should be decoded with blank specification
HIBC_CODE_128_LIC68Specifies that the data should be decoded with blank specification
HIBC_CODE_128_PAS73Specifies that the data should be decoded with blank specification
HIBC_CODE_39_LIC67Specifies that the data should be decoded with blank specification
HIBC_CODE_39_PAS72Specifies that the data should be decoded with blank specification
HIBC_DATA_MATRIX_LIC70Specifies that the data should be decoded with blank specification
HIBC_DATA_MATRIX_PAS75Specifies that the data should be decoded with blank specification
HIBCQRLIC71Specifies that the data should be decoded with blank specification
HIBCQRPAS76Specifies that the data should be decoded with blank specification
IATA_2_OF_520Specifies 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_517Specifies that the data should be decoded with { INTERLEAVED 2 of 5} barcode specification
ISBN15Specifies that the data should be decoded with { ISBN} barcode specification
ISMN48Specifies that the data should be decoded with { ISMN} barcode specification
ISSN47Specifies that the data should be decoded with { ISSN} barcode specification
ITALIAN_POST_2519Specifies that the data should be decoded with { Italian Post 25} barcode specification
ITF_1421Specifies that the data should be decoded with { ITF14} barcode specification
ITF_622Specifies that the data should be decoded with { ITF6} barcode specification
MACRO_PDF_41735Specifies that the data should be decoded with { MacroPdf417} barcode specification
MAILMARK66Specifies that the data should be decoded with Royal Mail Mailmark barcode specification.
MATRIX_2_OF_518Specifies that the data should be decoded with { Matrix 2 of 5} barcode specification
MAXI_CODE59Specifies that the data should be decoded with { MaxiCode} barcode specification
MICR_E_13_B60Specifies that the data should be decoded with { MICR E-13B} blank specification
MICRO_PDF_41736Specifies that the data should be decoded with { MicroPdf417} barcode specification
MICRO_QR56Specifies that the data should be decoded with { MicroQR Code} barcode specification
MOST_COMMON_TYPES96Specifies that data will be checked with most commonly used symbologies
MSI23Specifies that the data should be decoded with { MSI Plessey} barcode specification
NONE-1Unspecified decode type.
ONE_CODE40Specifies that the data should be decoded with USPS { OneCode} barcode specification
OPC27Specifies that the data should be decoded with { OPC} barcode specification
PATCH_CODE46Specifies that the data should be decoded with { Patch code} barcode specification. Barcode symbology is used for automated scanning
PDF_41734Specifies that the data should be decoded with { Pdf417} barcode symbology
PHARMACODE29Specifies that the data should be decoded with { Pharmacode} barcode. This symbology is also known as Pharmaceutical BINARY Code
PLANET39Specifies that the data should be decoded with { Planet} barcode specification
POSTAL_TYPES95Specifies that data will be checked with all of 1.5D POSTAL barcode symbologies, like Planet, Postnet, AustraliaPost, OneCode, RM4SCC, DutchKIX
POSTNET38Specifies that the data should be decoded with { Postnet} barcode specification
PZN28Specifies that the data should be decoded with { PZN} barcode specification. This symbology is also known as Pharma Zentral Nummer
QR32Specifies that the data should be decoded with { QR Code} barcode specification
RECT_MICRO_QR83Specifies that the data should be decoded with RectMicroQR (rMQR) Code barcode specification
RM_4_SCC41Specifies 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_1411Specifies that the data should be decoded with { SCC14} barcode specification
SSCC_1812Specifies that the data should be decoded with { SSCC18} barcode specification
STANDARD_2_OF_516Specifies that the data should be decoded with { Standard 2 of 5} barcode specification
SUPPLEMENT49Specifies that the data should be decoded with { Supplement(EAN2, EAN5)} barcode specification
SWISS_POST_PARCEL51Specifies that the data should be decoded with { Swiss Post Parcel Barcode} barcode specification
TYPES_1D97Specifies that data will be checked with all of 1D barcode symbologies
TYPES_2D98Specifies that data will be checked with all of 2D barcode symbologies
UPCA13Specifies that the data should be decoded with { UPC-A} barcode specification
UPCE14Specifies that the data should be decoded with { UPC-E} barcode specification
VIN24Specifies 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

ParameterTypeDescription
$expectedDecodeTypeint
$decodeTypesarray

Returns: bool

is1Dis1D(int $symbology) (static)

Determines if the specified BaseDecodeType contains any 1D barcode symbology

ParameterTypeDescription
$symbologyint

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

ParameterTypeDescription
$symbologyint

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

ParameterTypeDescription
$symbologyint

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