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
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
AustraliaPost
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Australia Post
public static readonly SingleDecodeType AustraliaPost
Nilai Bidang
AustralianPosteParcel
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Australian Post Domestic eParcel Barcode
public static readonly SingleDecodeType AustralianPosteParcel
Nilai Bidang
Aztec
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Aztec
public static readonly SingleDecodeType Aztec
Nilai Bidang
Codabar
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang CODABAR
public static readonly SingleDecodeType Codabar
Nilai Bidang
CodablockF
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang CodablockF
public static readonly SingleDecodeType CodablockF
Nilai Bidang
Code11
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang CODE 11
public static readonly SingleDecodeType Code11
Nilai Bidang
Code128
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang CODE 128
public static readonly SingleDecodeType Code128
Nilai Bidang
Code16K
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang SCode16K
public static readonly SingleDecodeType Code16K
Nilai Bidang
Code32
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Code32
public static readonly SingleDecodeType Code32
Nilai Bidang
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
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
Code93
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang CODE 93
public static readonly SingleDecodeType Code93
Nilai Bidang
CompactPdf417
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang CompactPdf417 (Pdf417Truncated)
public static readonly SingleDecodeType CompactPdf417
Nilai Bidang
DataLogic2of5
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang DataLogic 2 of 5
public static readonly SingleDecodeType DataLogic2of5
Nilai Bidang
DataMatrix
Menentukan bahwa data harus di-decode dengan simbol kode batang DataMatrix
public static readonly SingleDecodeType DataMatrix
Nilai Bidang
DatabarExpanded
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Databar expanded
public static readonly SingleDecodeType DatabarExpanded
Nilai Bidang
DatabarExpandedStacked
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Databar expanded stacked
public static readonly SingleDecodeType DatabarExpandedStacked
Nilai Bidang
DatabarLimited
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Databar limited
public static readonly SingleDecodeType DatabarLimited
Nilai Bidang
DatabarOmniDirectional
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Databar omni-directional
public static readonly SingleDecodeType DatabarOmniDirectional
Nilai Bidang
DatabarStacked
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Databar stacked
public static readonly SingleDecodeType DatabarStacked
Nilai Bidang
DatabarStackedOmniDirectional
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Databar stacked omni-directional
public static readonly SingleDecodeType DatabarStackedOmniDirectional
Nilai Bidang
DatabarTruncated
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Databar truncated
public static readonly SingleDecodeType DatabarTruncated
Nilai Bidang
DeutschePostIdentcode
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang DeutschePost Ident code
public static readonly SingleDecodeType DeutschePostIdentcode
Nilai Bidang
DeutschePostLeitcode
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang DeutschePost Leit code
public static readonly SingleDecodeType DeutschePostLeitcode
Nilai Bidang
DotCode
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang DotCode
public static readonly SingleDecodeType DotCode
Nilai Bidang
DutchKIX
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang DotCode
public static readonly SingleDecodeType DutchKIX
Nilai Bidang
EAN13
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang EAN-13
public static readonly SingleDecodeType EAN13
Nilai Bidang
EAN14
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang EAN14
public static readonly SingleDecodeType EAN14
Nilai Bidang
EAN8
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang EAN-8
public static readonly SingleDecodeType EAN8
Nilai Bidang
GS1Aztec
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Aztec
public static readonly SingleDecodeType GS1Aztec
Nilai Bidang
GS1Code128
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 CODE 128
public static readonly SingleDecodeType GS1Code128
Nilai Bidang
GS1CompositeBar
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Composite Bar
public static readonly SingleDecodeType GS1CompositeBar
Nilai Bidang
GS1DataMatrix
Menentukan bahwa data harus di-decode dengan simbol kode batang GS1DataMatrix
public static readonly SingleDecodeType GS1DataMatrix
Nilai Bidang
GS1DotCode
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 DotCode
public static readonly SingleDecodeType GS1DotCode
Nilai Bidang
GS1HanXin
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 Han Xin Code
public static readonly SingleDecodeType GS1HanXin
Nilai Bidang
GS1MicroPdf417
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang MicroPdf417
public static readonly SingleDecodeType GS1MicroPdf417
Nilai Bidang
GS1QR
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang GS1 QR
public static readonly SingleDecodeType GS1QR
Nilai Bidang
HIBCAztecLIC
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC LIC Aztec
public static readonly SingleDecodeType HIBCAztecLIC
Nilai Bidang
HIBCAztecPAS
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC PAS Aztec
public static readonly SingleDecodeType HIBCAztecPAS
Nilai Bidang
HIBCCode128LIC
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC LIC Code128
public static readonly SingleDecodeType HIBCCode128LIC
Nilai Bidang
HIBCCode128PAS
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC PAS Code128
public static readonly SingleDecodeType HIBCCode128PAS
Nilai Bidang
HIBCCode39LIC
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC LIC Code39
public static readonly SingleDecodeType HIBCCode39LIC
Nilai Bidang
HIBCCode39PAS
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC PAS Code39
public static readonly SingleDecodeType HIBCCode39PAS
Nilai Bidang
HIBCDataMatrixLIC
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC LIC DataMatrix
public static readonly SingleDecodeType HIBCDataMatrixLIC
Nilai Bidang
HIBCDataMatrixPAS
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC PAS DataMatrix
public static readonly SingleDecodeType HIBCDataMatrixPAS
Nilai Bidang
HIBCQRLIC
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC LIC QR
public static readonly SingleDecodeType HIBCQRLIC
Nilai Bidang
HIBCQRPAS
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang HIBC PAS QR
public static readonly SingleDecodeType HIBCQRPAS
Nilai Bidang
HanXin
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Han Xin Code
public static readonly SingleDecodeType HanXin
Nilai Bidang
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
ISBN
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang ISBN
public static readonly SingleDecodeType ISBN
Nilai Bidang
ISMN
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang ISMN
public static readonly SingleDecodeType ISMN
Nilai Bidang
ISSN
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang ISSN
public static readonly SingleDecodeType ISSN
Nilai Bidang
ITF14
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang ITF14
public static readonly SingleDecodeType ITF14
Nilai Bidang
ITF6
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang ITF6
public static readonly SingleDecodeType ITF6
Nilai Bidang
Interleaved2of5
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang INTERLEAVED 2 of 5
public static readonly SingleDecodeType Interleaved2of5
Nilai Bidang
ItalianPost25
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Italian Post 25
public static readonly SingleDecodeType ItalianPost25
Nilai Bidang
MSI
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang MSI Plessey
public static readonly SingleDecodeType MSI
Nilai Bidang
MacroPdf417
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang MacroPdf417
public static readonly SingleDecodeType MacroPdf417
Nilai Bidang
Mailmark
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Royal Mail Mailmark.
public static readonly SingleDecodeType Mailmark
Nilai Bidang
Matrix2of5
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Matrix 2 of 5
public static readonly SingleDecodeType Matrix2of5
Nilai Bidang
MaxiCode
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang MaxiCode
public static readonly SingleDecodeType MaxiCode
Nilai Bidang
MicrE13B
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang MICR E-13B
public static readonly SingleDecodeType MicrE13B
Nilai Bidang
MicroPdf417
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang MicroPdf417
public static readonly SingleDecodeType MicroPdf417
Nilai Bidang
MicroQR
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang MicroQR Code
public static readonly SingleDecodeType MicroQR
Nilai Bidang
MostCommonTypes
Menentukan bahwa data akan diperiksa dengan simbol yang paling umum digunakan
public static readonly MultyDecodeType MostCommonTypes
Nilai Bidang
None
Tipe decode tidak ditentukan.
public static readonly SingleDecodeType None
Nilai Bidang
OPC
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang OPC
public static readonly SingleDecodeType OPC
Nilai Bidang
OneCode
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang USPS OneCode
public static readonly SingleDecodeType OneCode
Nilai Bidang
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
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
Pdf417
Menentukan bahwa data harus di-decode dengan simbol kode batang Pdf417
public static readonly SingleDecodeType Pdf417
Nilai Bidang
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
Planet
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Planet
public static readonly SingleDecodeType Planet
Nilai Bidang
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
Postnet
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Postnet
public static readonly SingleDecodeType Postnet
Nilai Bidang
QR
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang QR Code
public static readonly SingleDecodeType QR
Nilai Bidang
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
RectMicroQR
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang RectMicroQR (rMQR) Code
public static readonly SingleDecodeType RectMicroQR
Nilai Bidang
SCC14
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang SCC14
public static readonly SingleDecodeType SCC14
Nilai Bidang
SSCC18
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang SSCC18
public static readonly SingleDecodeType SSCC18
Nilai Bidang
Standard2of5
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Standard 2 of 5
public static readonly SingleDecodeType Standard2of5
Nilai Bidang
Supplement
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Supplement(EAN2, EAN5)
public static readonly SingleDecodeType Supplement
Nilai Bidang
SwissPostParcel
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang Swiss Post Parcel Barcode
public static readonly SingleDecodeType SwissPostParcel
Nilai Bidang
Types1D
Menentukan bahwa data akan diperiksa dengan semua simbol kode batang 1D
public static readonly MultyDecodeType Types1D
Nilai Bidang
Types2D
Menentukan bahwa data akan diperiksa dengan semua simbol kode batang 2D
public static readonly MultyDecodeType Types2D
Nilai Bidang
UPCA
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang UPC-A
public static readonly SingleDecodeType UPCA
Nilai Bidang
UPCE
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang UPC-E
public static readonly SingleDecodeType UPCE
Nilai Bidang
VIN
Menentukan bahwa data harus di-decode dengan spesifikasi kode batang VIN (Nomor Identifikasi Kendaraan)
public static readonly SingleDecodeType VIN
Nilai Bidang
Properti
AllSupportedTypesArray
Mengambil array yang mewakili AllSupportedTypes
public static SingleDecodeType[] AllSupportedTypesArray { get; }
Nilai Properti
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
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
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
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
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
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
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
true jika parsingType berhasil dikonversi; jika tidak, false.