Class DecodeType

Class DecodeType

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

Tentukan jenis kode batang yang akan dibaca.

public static class DecodeType

Pewarisan

objectDecodeType

Anggota yang Dwarisi

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

Contoh

Contoh ini menunjukkan bagaimana mendeteksi kode batang Code39 dan Code128.

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

Bidang

AllSupportedTypes

Menentukan bahwa data akan diperiksa dengan semua simbol yang tersedia

public static readonly MultyDecodeType AllSupportedTypes

Nilai Bidang

MultyDecodeType

AustraliaPost

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Australia Post

public static readonly SingleDecodeType AustraliaPost

Nilai Bidang

SingleDecodeType

AustralianPosteParcel

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Australian Post Domestic eParcel Barcode

public static readonly SingleDecodeType AustralianPosteParcel

Nilai Bidang

SingleDecodeType

Aztec

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Aztec

public static readonly SingleDecodeType Aztec

Nilai Bidang

SingleDecodeType

Codabar

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang CODABAR

public static readonly SingleDecodeType Codabar

Nilai Bidang

SingleDecodeType

CodablockF

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang CodablockF

public static readonly SingleDecodeType CodablockF

Nilai Bidang

SingleDecodeType

Code11

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang CODE 11

public static readonly SingleDecodeType Code11

Nilai Bidang

SingleDecodeType

Code128

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang CODE 128

public static readonly SingleDecodeType Code128

Nilai Bidang

SingleDecodeType

Code16K

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang SCode16K

public static readonly SingleDecodeType Code16K

Nilai Bidang

SingleDecodeType

Code32

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Code32

public static readonly SingleDecodeType Code32

Nilai Bidang

SingleDecodeType

Code39

Menentukan bahwa data harus di-decode dengan spesifikasi karakter dasar kode batang Code 39: ISO/IEC 16388

public static readonly SingleDecodeType Code39

Nilai Bidang

SingleDecodeType

Code39FullASCII

Menentukan bahwa data harus di-decode dengan spesifikasi karakter ASCII penuh kode batang Code 39: ISO/IEC 16388

public static readonly SingleDecodeType Code39FullASCII

Nilai Bidang

SingleDecodeType

Code93

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang CODE 93

public static readonly SingleDecodeType Code93

Nilai Bidang

SingleDecodeType

CompactPdf417

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang CompactPdf417 (Pdf417Truncated)

public static readonly SingleDecodeType CompactPdf417

Nilai Bidang

SingleDecodeType

DataLogic2of5

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang DataLogic 2 of 5

public static readonly SingleDecodeType DataLogic2of5

Nilai Bidang

SingleDecodeType

DataMatrix

Menentukan bahwa data harus di-decode dengan simbol kode batang DataMatrix

public static readonly SingleDecodeType DataMatrix

Nilai Bidang

SingleDecodeType

DatabarExpanded

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Databar expanded

public static readonly SingleDecodeType DatabarExpanded

Nilai Bidang

SingleDecodeType

DatabarExpandedStacked

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Databar expanded stacked

public static readonly SingleDecodeType DatabarExpandedStacked

Nilai Bidang

SingleDecodeType

DatabarLimited

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Databar limited

public static readonly SingleDecodeType DatabarLimited

Nilai Bidang

SingleDecodeType

DatabarOmniDirectional

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Databar omni-directional

public static readonly SingleDecodeType DatabarOmniDirectional

Nilai Bidang

SingleDecodeType

DatabarStacked

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Databar stacked

public static readonly SingleDecodeType DatabarStacked

Nilai Bidang

SingleDecodeType

DatabarStackedOmniDirectional

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Databar stacked omni-directional

public static readonly SingleDecodeType DatabarStackedOmniDirectional

Nilai Bidang

SingleDecodeType

DatabarTruncated

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Databar truncated

public static readonly SingleDecodeType DatabarTruncated

Nilai Bidang

SingleDecodeType

DeutschePostIdentcode

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang DeutschePost Ident code

public static readonly SingleDecodeType DeutschePostIdentcode

Nilai Bidang

SingleDecodeType

DeutschePostLeitcode

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang DeutschePost Leit code

public static readonly SingleDecodeType DeutschePostLeitcode

Nilai Bidang

SingleDecodeType

DotCode

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang DotCode

public static readonly SingleDecodeType DotCode

Nilai Bidang

SingleDecodeType

DutchKIX

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang DotCode

public static readonly SingleDecodeType DutchKIX

Nilai Bidang

SingleDecodeType

EAN13

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang EAN-13

public static readonly SingleDecodeType EAN13

Nilai Bidang

SingleDecodeType

EAN14

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang EAN14

public static readonly SingleDecodeType EAN14

Nilai Bidang

SingleDecodeType

EAN8

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang EAN-8

public static readonly SingleDecodeType EAN8

Nilai Bidang

SingleDecodeType

GS1Aztec

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Aztec

public static readonly SingleDecodeType GS1Aztec

Nilai Bidang

SingleDecodeType

GS1Code128

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 CODE 128

public static readonly SingleDecodeType GS1Code128

Nilai Bidang

SingleDecodeType

GS1CompositeBar

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Composite Bar

public static readonly SingleDecodeType GS1CompositeBar

Nilai Bidang

SingleDecodeType

GS1DataMatrix

Menentukan bahwa data harus di-decode dengan simbol kode batang GS1DataMatrix

public static readonly SingleDecodeType GS1DataMatrix

Nilai Bidang

SingleDecodeType

GS1DotCode

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 DotCode

public static readonly SingleDecodeType GS1DotCode

Nilai Bidang

SingleDecodeType

GS1HanXin

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Han Xin Code

public static readonly SingleDecodeType GS1HanXin

Nilai Bidang

SingleDecodeType

GS1MicroPdf417

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang MicroPdf417

public static readonly SingleDecodeType GS1MicroPdf417

Nilai Bidang

SingleDecodeType

GS1QR

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 QR

public static readonly SingleDecodeType GS1QR

Nilai Bidang

SingleDecodeType

HIBCAztecLIC

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC LIC Aztec

public static readonly SingleDecodeType HIBCAztecLIC

Nilai Bidang

SingleDecodeType

HIBCAztecPAS

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC PAS Aztec

public static readonly SingleDecodeType HIBCAztecPAS

Nilai Bidang

SingleDecodeType

HIBCCode128LIC

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC LIC Code128

public static readonly SingleDecodeType HIBCCode128LIC

Nilai Bidang

SingleDecodeType

HIBCCode128PAS

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC PAS Code128

public static readonly SingleDecodeType HIBCCode128PAS

Nilai Bidang

SingleDecodeType

HIBCCode39LIC

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC LIC Code39

public static readonly SingleDecodeType HIBCCode39LIC

Nilai Bidang

SingleDecodeType

HIBCCode39PAS

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC PAS Code39

public static readonly SingleDecodeType HIBCCode39PAS

Nilai Bidang

SingleDecodeType

HIBCDataMatrixLIC

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC LIC DataMatrix

public static readonly SingleDecodeType HIBCDataMatrixLIC

Nilai Bidang

SingleDecodeType

HIBCDataMatrixPAS

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC PAS DataMatrix

public static readonly SingleDecodeType HIBCDataMatrixPAS

Nilai Bidang

SingleDecodeType

HIBCQRLIC

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC LIC QR

public static readonly SingleDecodeType HIBCQRLIC

Nilai Bidang

SingleDecodeType

HIBCQRPAS

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC PAS QR

public static readonly SingleDecodeType HIBCQRPAS

Nilai Bidang

SingleDecodeType

HanXin

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Han Xin Code

public static readonly SingleDecodeType HanXin

Nilai Bidang

SingleDecodeType

IATA2of5

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang IATA 2 of 5. IATA (Asosiasi Pengangkutan Udara Internasional) menggunakan kode batang ini untuk manajemen kargo udara.

public static readonly SingleDecodeType IATA2of5

Nilai Bidang

SingleDecodeType

ISBN

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang ISBN

public static readonly SingleDecodeType ISBN

Nilai Bidang

SingleDecodeType

ISMN

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang ISMN

public static readonly SingleDecodeType ISMN

Nilai Bidang

SingleDecodeType

ISSN

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang ISSN

public static readonly SingleDecodeType ISSN

Nilai Bidang

SingleDecodeType

ITF14

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang ITF14

public static readonly SingleDecodeType ITF14

Nilai Bidang

SingleDecodeType

ITF6

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang ITF6

public static readonly SingleDecodeType ITF6

Nilai Bidang

SingleDecodeType

Interleaved2of5

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang INTERLEAVED 2 of 5

public static readonly SingleDecodeType Interleaved2of5

Nilai Bidang

SingleDecodeType

ItalianPost25

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Italian Post 25

public static readonly SingleDecodeType ItalianPost25

Nilai Bidang

SingleDecodeType

MSI

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang MSI Plessey

public static readonly SingleDecodeType MSI

Nilai Bidang

SingleDecodeType

MacroPdf417

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang MacroPdf417

public static readonly SingleDecodeType MacroPdf417

Nilai Bidang

SingleDecodeType

Mailmark

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Royal Mail Mailmark.

public static readonly SingleDecodeType Mailmark

Nilai Bidang

SingleDecodeType

Matrix2of5

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Matrix 2 of 5

public static readonly SingleDecodeType Matrix2of5

Nilai Bidang

SingleDecodeType

MaxiCode

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang MaxiCode

public static readonly SingleDecodeType MaxiCode

Nilai Bidang

SingleDecodeType

MicrE13B

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang MICR E-13B

public static readonly SingleDecodeType MicrE13B

Nilai Bidang

SingleDecodeType

MicroPdf417

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang MicroPdf417

public static readonly SingleDecodeType MicroPdf417

Nilai Bidang

SingleDecodeType

MicroQR

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang MicroQR Code

public static readonly SingleDecodeType MicroQR

Nilai Bidang

SingleDecodeType

MostCommonTypes

Menentukan bahwa data akan diperiksa dengan simbol yang paling umum digunakan

public static readonly MultyDecodeType MostCommonTypes

Nilai Bidang

MultyDecodeType

None

Tipe decode tidak ditentukan.

public static readonly SingleDecodeType None

Nilai Bidang

SingleDecodeType

OPC

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang OPC

public static readonly SingleDecodeType OPC

Nilai Bidang

SingleDecodeType

OneCode

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang USPS OneCode

public static readonly SingleDecodeType OneCode

Nilai Bidang

SingleDecodeType

PZN

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang PZN. Simbol ini juga dikenal sebagai Pharma Zentral Nummer. PZN7 dan PZN8 didukung.

public static readonly SingleDecodeType PZN

Nilai Bidang

SingleDecodeType

PatchCode

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Patch code. Simbol kode batang ini digunakan untuk pemindaian otomatis

public static readonly SingleDecodeType PatchCode

Nilai Bidang

SingleDecodeType

Pdf417

Menentukan bahwa data harus di-decode dengan simbol kode batang Pdf417

public static readonly SingleDecodeType Pdf417

Nilai Bidang

SingleDecodeType

Pharmacode

Menentukan bahwa data harus di-decode dengan Pharmacode kode batang. Simbol ini juga dikenal sebagai Kode Biner Farmasi

public static readonly SingleDecodeType Pharmacode

Nilai Bidang

SingleDecodeType

Planet

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Planet

public static readonly SingleDecodeType Planet

Nilai Bidang

SingleDecodeType

PostalTypes

Menentukan bahwa data akan diperiksa dengan semua simbol kode batang 1.5D Postal, seperti Planet, Postnet, AustraliaPost, OneCode, RM4SCC, DutchKIX

public static readonly MultyDecodeType PostalTypes

Nilai Bidang

MultyDecodeType

Postnet

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Postnet

public static readonly SingleDecodeType Postnet

Nilai Bidang

SingleDecodeType

QR

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang QR Code

public static readonly SingleDecodeType QR

Nilai Bidang

SingleDecodeType

RM4SCC

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang RM4SCC. RM4SCC (Royal Mail 4-state Customer Code) digunakan untuk proses penyortiran surat otomatis di Inggris.

public static readonly SingleDecodeType RM4SCC

Nilai Bidang

SingleDecodeType

RectMicroQR

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang RectMicroQR (rMQR) Code

public static readonly SingleDecodeType RectMicroQR

Nilai Bidang

SingleDecodeType

SCC14

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang SCC14

public static readonly SingleDecodeType SCC14

Nilai Bidang

SingleDecodeType

SSCC18

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang SSCC18

public static readonly SingleDecodeType SSCC18

Nilai Bidang

SingleDecodeType

Standard2of5

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Standard 2 of 5

public static readonly SingleDecodeType Standard2of5

Nilai Bidang

SingleDecodeType

Supplement

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Supplement(EAN2, EAN5)

public static readonly SingleDecodeType Supplement

Nilai Bidang

SingleDecodeType

SwissPostParcel

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Swiss Post Parcel Barcode

public static readonly SingleDecodeType SwissPostParcel

Nilai Bidang

SingleDecodeType

Types1D

Menentukan bahwa data akan diperiksa dengan semua simbol kode batang 1D

public static readonly MultyDecodeType Types1D

Nilai Bidang

MultyDecodeType

Types2D

Menentukan bahwa data akan diperiksa dengan semua simbol kode batang 2D

public static readonly MultyDecodeType Types2D

Nilai Bidang

MultyDecodeType

UPCA

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang UPC-A

public static readonly SingleDecodeType UPCA

Nilai Bidang

SingleDecodeType

UPCE

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang UPC-E

public static readonly SingleDecodeType UPCE

Nilai Bidang

SingleDecodeType

VIN

Menentukan bahwa data harus di-decode dengan spesifikasi kode batang VIN (Nomor Identifikasi Kendaraan)

public static readonly SingleDecodeType VIN

Nilai Bidang

SingleDecodeType

Properti

AllSupportedTypesArray

Mengambil array yang mewakili AllSupportedTypes

public static SingleDecodeType[] AllSupportedTypesArray { get; }

Nilai Properti

SingleDecodeType[]

Metode

GetNames()

Mengambil array nama dari tipe decode.

public static string[] GetNames()

Mengembalikan

string[]

Array string dari nama tipe decode.

Is1D(BaseDecodeType)

Menentukan apakah Aspose.BarCode.BarCodeRecognition.BaseDecodeType yang ditentukan mengandung simbol kode batang 1D

public static bool Is1D(BaseDecodeType symbology)

Parameter

symbology BaseDecodeType

Aspose.BarCode.BarCodeRecognition.BaseDecodeType yang akan diuji.

Mengembalikan

bool

Mengembalikan true jika Aspose.BarCode.BarCodeRecognition.BaseDecodeType mengandung simbol kode batang 1D; jika tidak, mengembalikan false.

Is2D(BaseDecodeType)

Menentukan apakah Aspose.BarCode.BarCodeRecognition.BaseDecodeType yang ditentukan mengandung simbol kode batang 2D

public static bool Is2D(BaseDecodeType symbology)

Parameter

symbology BaseDecodeType

Aspose.BarCode.BarCodeRecognition.BaseDecodeType yang akan diuji.

Mengembalikan

bool

Mengembalikan true jika Aspose.BarCode.BarCodeRecognition.BaseDecodeType mengandung simbol kode batang 2D; jika tidak, mengembalikan false.

IsPostal(BaseDecodeType)

Menentukan apakah Aspose.BarCode.BarCodeRecognition.BaseDecodeType yang ditentukan mengandung simbol kode batang Postal

public static bool IsPostal(BaseDecodeType symbology)

Parameter

symbology BaseDecodeType

Aspose.BarCode.BarCodeRecognition.BaseDecodeType yang akan diuji.

Mengembalikan

bool

Mengembalikan true jika Aspose.BarCode.BarCodeRecognition.BaseDecodeType mengandung simbol kode batang Postal; jika tidak, mengembalikan false.

Parse(string, out SingleDecodeType)

Mengonversi representasi string dari SingleDecodeType ke instansinya. Nilai kembali menunjukkan apakah konversi berhasil atau gagal.

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

Parameter

parsingType string

String yang berisi SingleDecodeType dalam format seperti “EAN8” atau “EAN13” atau “CodaBar”… untuk dikonversi.

result SingleDecodeType

SingleDecodeType aktual yang dikembalikan, ketika konversi berhasil; jika tidak, mengembalikan tipe tak terdefinisi: DecodeType.None.

Mengembalikan

bool

true jika parsingType berhasil dikonversi; jika tidak, false.

ScanSets(params BaseDecodeType[])

Tentukan set pemindaian berdasarkan barcodeTypes

public static BaseDecodeType ScanSets(params BaseDecodeType[] barcodeTypes)

Parameter

barcodeTypes BaseDecodeType[]

Array dari tipe decode tunggal dan multy

Mengembalikan

BaseDecodeType

Tipe decode multi

TryParse(string, out SingleDecodeType)

Mengonversi representasi string dari SingleDecodeType ke instansinya. Nilai kembali menunjukkan apakah konversi berhasil atau gagal.

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

Parameter

parsingType string

String yang berisi SingleDecodeType dalam format seperti “EAN8” atau “EAN13” atau “CodaBar”… untuk dikonversi.

result SingleDecodeType

SingleDecodeType aktual yang dikembalikan, ketika konversi berhasil; jika tidak, mengembalikan tipe tak terdefinisi: DecodeType.None.

Mengembalikan

bool

true jika parsingType berhasil dikonversi; jika tidak, false.

TryParse(string, out MultyDecodeType)

Mengonversi representasi string dari MultyDecodeType ke instansinya. Nilai kembali menunjukkan apakah konversi berhasil atau gagal.

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

Parameter

parsingType string

String dalam format “AllSupportedTypes” atau “EAN8,EAN13,CodaBar” untuk dikonversi.

result MultyDecodeType

MultyDecodeType aktual yang dikembalikan, ketika konversi berhasil; jika tidak, mengembalikan tipe tak terdefinisi: new MultyDecodeType(DecodeType.None)

Mengembalikan

bool

true jika parsingType berhasil dikonversi; jika tidak, false.

 Indonesia