Class DecodeType
Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.1.0)
Ange typen av streckkod som ska läsas.
public static class DecodeType
Arv
Ärvt Medlemmar
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Exempel
Detta exempel visar hur man upptäcker Code39 och Code128 streckkoder.
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.Code39, DecodeType.Code128))
{
foreach (BarCodeResult result in reader.ReadBarCodes())
{
Console.WriteLine("BarCode Typ: " + result.CodeTypeName);
Console.WriteLine("BarCode Kodtext: " + 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 Typ: " + result.CodeTypeName)
Console.WriteLine("BarCode Kodtext: " + result.CodeText)
Next
End Using
Fält
AllSupportedTypes
Anger att data kommer att kontrolleras med alla tillgängliga symbologier
public static readonly MultyDecodeType AllSupportedTypes
Fältvärde
AustraliaPost
Anger att data ska avkodas med Australia Post streckkodsspecifikation
public static readonly SingleDecodeType AustraliaPost
Fältvärde
AustralianPosteParcel
Anger att data ska avkodas med Australian Post Domestic eParcel Barcode streckkodsspecifikation
public static readonly SingleDecodeType AustralianPosteParcel
Fältvärde
Aztec
Anger att data ska avkodas med Aztec streckkodsspecifikation
public static readonly SingleDecodeType Aztec
Fältvärde
Codabar
Anger att data ska avkodas med CODABAR streckkodsspecifikation
public static readonly SingleDecodeType Codabar
Fältvärde
CodablockF
Anger att data ska avkodas med CodablockF streckkodsspecifikation
public static readonly SingleDecodeType CodablockF
Fältvärde
Code11
Anger att data ska avkodas med CODE 11 streckkodsspecifikation
public static readonly SingleDecodeType Code11
Fältvärde
Code128
Anger att data ska avkodas med CODE 128 streckkodsspecifikation
public static readonly SingleDecodeType Code128
Fältvärde
Code16K
Anger att data ska avkodas med SCode16K streckkodsspecifikation
public static readonly SingleDecodeType Code16K
Fältvärde
Code32
Anger att data ska avkodas med Code32 streckkodsspecifikation
public static readonly SingleDecodeType Code32
Fältvärde
Code39
Anger att data ska avkodas med Code 39 grundläggande teckenuppsättning streckkodsspecifikation: ISO/IEC 16388
public static readonly SingleDecodeType Code39
Fältvärde
Code39FullASCII
Anger att data ska avkodas med Code 39 full ASCII teckenuppsättning streckkodsspecifikation: ISO/IEC 16388
public static readonly SingleDecodeType Code39FullASCII
Fältvärde
Code93
Anger att data ska avkodas med CODE 93 streckkodsspecifikation
public static readonly SingleDecodeType Code93
Fältvärde
CompactPdf417
Anger att data ska avkodas med CompactPdf417 (Pdf417Truncated) streckkodsspecifikation
public static readonly SingleDecodeType CompactPdf417
Fältvärde
DataLogic2of5
Anger att data ska avkodas med DataLogic 2 of 5 streckkodsspecifikation
public static readonly SingleDecodeType DataLogic2of5
Fältvärde
DataMatrix
Anger att data ska avkodas med DataMatrix streckkodssymbologi
public static readonly SingleDecodeType DataMatrix
Fältvärde
DatabarExpanded
Anger att data ska avkodas med GS1 Databar expanded streckkodsspecifikation
public static readonly SingleDecodeType DatabarExpanded
Fältvärde
DatabarExpandedStacked
Anger att data ska avkodas med GS1 Databar expanded stacked streckkodsspecifikation
public static readonly SingleDecodeType DatabarExpandedStacked
Fältvärde
DatabarLimited
Anger att data ska avkodas med GS1 Databar limited streckkodsspecifikation
public static readonly SingleDecodeType DatabarLimited
Fältvärde
DatabarOmniDirectional
Anger att data ska avkodas med GS1 Databar omni-directional streckkodsspecifikation
public static readonly SingleDecodeType DatabarOmniDirectional
Fältvärde
DatabarStacked
Anger att data ska avkodas med GS1 Databar stacked streckkodsspecifikation
public static readonly SingleDecodeType DatabarStacked
Fältvärde
DatabarStackedOmniDirectional
Anger att data ska avkodas med GS1 Databar stacked omni-directional streckkodsspecifikation
public static readonly SingleDecodeType DatabarStackedOmniDirectional
Fältvärde
DatabarTruncated
Anger att data ska avkodas med GS1 Databar truncated streckkodsspecifikation
public static readonly SingleDecodeType DatabarTruncated
Fältvärde
DeutschePostIdentcode
Anger att data ska avkodas med DeutschePost Ident code streckkodsspecifikation
public static readonly SingleDecodeType DeutschePostIdentcode
Fältvärde
DeutschePostLeitcode
Anger att data ska avkodas med DeutschePost Leit code streckkodsspecifikation
public static readonly SingleDecodeType DeutschePostLeitcode
Fältvärde
DotCode
Anger att data ska avkodas med DotCode streckkodsspecifikation
public static readonly SingleDecodeType DotCode
Fältvärde
DutchKIX
Anger att data ska avkodas med DotCode streckkodsspecifikation
public static readonly SingleDecodeType DutchKIX
Fältvärde
EAN13
Anger att data ska avkodas med EAN-13 streckkodsspecifikation
public static readonly SingleDecodeType EAN13
Fältvärde
EAN14
Anger att data ska avkodas med EAN14 streckkodsspecifikation
public static readonly SingleDecodeType EAN14
Fältvärde
EAN8
Anger att data ska avkodas med EAN-8 streckkodsspecifikation
public static readonly SingleDecodeType EAN8
Fältvärde
GS1Aztec
Anger att data ska avkodas med GS1 Aztec streckkodsspecifikation
public static readonly SingleDecodeType GS1Aztec
Fältvärde
GS1Code128
Anger att data ska avkodas med GS1 CODE 128 streckkodsspecifikation
public static readonly SingleDecodeType GS1Code128
Fältvärde
GS1CompositeBar
Anger att data ska avkodas med GS1 Composite Bar streckkodsspecifikation
public static readonly SingleDecodeType GS1CompositeBar
Fältvärde
GS1DataMatrix
Anger att data ska avkodas med GS1DataMatrix streckkodssymbologi
public static readonly SingleDecodeType GS1DataMatrix
Fältvärde
GS1DotCode
Anger att data ska avkodas med GS1 DotCode streckkodsspecifikation
public static readonly SingleDecodeType GS1DotCode
Fältvärde
GS1HanXin
Anger att data ska avkodas med GS1 Han Xin Code streckkodsspecifikation
public static readonly SingleDecodeType GS1HanXin
Fältvärde
GS1MicroPdf417
Anger att data ska avkodas med MicroPdf417 streckkodsspecifikation
public static readonly SingleDecodeType GS1MicroPdf417
Fältvärde
GS1QR
Anger att data ska avkodas med GS1 QR streckkodsspecifikation
public static readonly SingleDecodeType GS1QR
Fältvärde
HIBCAztecLIC
Anger att data ska avkodas med HIBC LIC Aztec streckkodsspecifikation
public static readonly SingleDecodeType HIBCAztecLIC
Fältvärde
HIBCAztecPAS
Anger att data ska avkodas med HIBC PAS Aztec streckkodsspecifikation
public static readonly SingleDecodeType HIBCAztecPAS
Fältvärde
HIBCCode128LIC
Anger att data ska avkodas med HIBC LIC Code128 streckkodsspecifikation
public static readonly SingleDecodeType HIBCCode128LIC
Fältvärde
HIBCCode128PAS
Anger att data ska avkodas med HIBC PAS Code128 streckkodsspecifikation
public static readonly SingleDecodeType HIBCCode128PAS
Fältvärde
HIBCCode39LIC
Anger att data ska avkodas med HIBC LIC Code39 streckkodsspecifikation
public static readonly SingleDecodeType HIBCCode39LIC
Fältvärde
HIBCCode39PAS
Anger att data ska avkodas med HIBC PAS Code39 streckkodsspecifikation
public static readonly SingleDecodeType HIBCCode39PAS
Fältvärde
HIBCDataMatrixLIC
Anger att data ska avkodas med HIBC LIC DataMatrix streckkodsspecifikation
public static readonly SingleDecodeType HIBCDataMatrixLIC
Fältvärde
HIBCDataMatrixPAS
Anger att data ska avkodas med HIBC PAS DataMatrix streckkodsspecifikation
public static readonly SingleDecodeType HIBCDataMatrixPAS
Fältvärde
HIBCQRLIC
Anger att data ska avkodas med HIBC LIC QR streckkodsspecifikation
public static readonly SingleDecodeType HIBCQRLIC
Fältvärde
HIBCQRPAS
Anger att data ska avkodas med HIBC PAS QR streckkodsspecifikation
public static readonly SingleDecodeType HIBCQRPAS
Fältvärde
HanXin
Anger att data ska avkodas med Han Xin Code streckkodsspecifikation
public static readonly SingleDecodeType HanXin
Fältvärde
IATA2of5
Anger att data ska avkodas med IATA 2 of 5 streckkodsspecifikation. IATA (International Air Transport Association) använder denna streckkod för hantering av flygfrakt.
public static readonly SingleDecodeType IATA2of5
Fältvärde
ISBN
Anger att data ska avkodas med ISBN streckkodsspecifikation
public static readonly SingleDecodeType ISBN
Fältvärde
ISMN
Anger att data ska avkodas med ISMN streckkodsspecifikation
public static readonly SingleDecodeType ISMN
Fältvärde
ISSN
Anger att data ska avkodas med ISSN streckkodsspecifikation
public static readonly SingleDecodeType ISSN
Fältvärde
ITF14
Anger att data ska avkodas med ITF14 streckkodsspecifikation
public static readonly SingleDecodeType ITF14
Fältvärde
ITF6
Anger att data ska avkodas med ITF6 streckkodsspecifikation
public static readonly SingleDecodeType ITF6
Fältvärde
Interleaved2of5
Anger att data ska avkodas med INTERLEAVED 2 of 5 streckkodsspecifikation
public static readonly SingleDecodeType Interleaved2of5
Fältvärde
ItalianPost25
Anger att data ska avkodas med Italian Post 25 streckkodsspecifikation
public static readonly SingleDecodeType ItalianPost25
Fältvärde
MSI
Anger att data ska avkodas med MSI Plessey streckkodsspecifikation
public static readonly SingleDecodeType MSI
Fältvärde
MacroPdf417
Anger att data ska avkodas med MacroPdf417 streckkodsspecifikation
public static readonly SingleDecodeType MacroPdf417
Fältvärde
Mailmark
Anger att data ska avkodas med Royal Mail Mailmark streckkodsspecifikation.
public static readonly SingleDecodeType Mailmark
Fältvärde
Matrix2of5
Anger att data ska avkodas med Matrix 2 of 5 streckkodsspecifikation
public static readonly SingleDecodeType Matrix2of5
Fältvärde
MaxiCode
Anger att data ska avkodas med MaxiCode streckkodsspecifikation
public static readonly SingleDecodeType MaxiCode
Fältvärde
MicrE13B
Anger att data ska avkodas med MICR E-13B streckkodsspecifikation
public static readonly SingleDecodeType MicrE13B
Fältvärde
MicroPdf417
Anger att data ska avkodas med MicroPdf417 streckkodsspecifikation
public static readonly SingleDecodeType MicroPdf417
Fältvärde
MicroQR
Anger att data ska avkodas med MicroQR Code streckkodsspecifikation
public static readonly SingleDecodeType MicroQR
Fältvärde
MostCommonTypes
Anger att data kommer att kontrolleras med de mest vanligt använda symbologierna
public static readonly MultyDecodeType MostCommonTypes
Fältvärde
None
Odefinierad avkodningstyp.
public static readonly SingleDecodeType None
Fältvärde
OPC
Anger att data ska avkodas med OPC streckkodsspecifikation
public static readonly SingleDecodeType OPC
Fältvärde
OneCode
Anger att data ska avkodas med USPS OneCode streckkodsspecifikation
public static readonly SingleDecodeType OneCode
Fältvärde
PZN
Anger att data ska avkodas med PZN streckkodsspecifikation. Denna symbologi är också känd som Pharma Zentral Nummer. PZN7 och PZN8 stöds.
public static readonly SingleDecodeType PZN
Fältvärde
PatchCode
Anger att data ska avkodas med Patch code streckkodsspecifikation. Streckkodssymbologi används för automatiserad skanning
public static readonly SingleDecodeType PatchCode
Fältvärde
Pdf417
Anger att data ska avkodas med Pdf417 streckkodssymbologi
public static readonly SingleDecodeType Pdf417
Fältvärde
Pharmacode
Anger att data ska avkodas med Pharmacode streckkod. Denna symbologi är också känd som Pharmaceutical Binary Code
public static readonly SingleDecodeType Pharmacode
Fältvärde
Planet
Anger att data ska avkodas med Planet streckkodsspecifikation
public static readonly SingleDecodeType Planet
Fältvärde
PostalTypes
Anger att data kommer att kontrolleras med alla 1.5D Postal streckkodssymbologier, såsom Planet, Postnet, AustraliaPost, OneCode, RM4SCC, DutchKIX
public static readonly MultyDecodeType PostalTypes
Fältvärde
Postnet
Anger att data ska avkodas med Postnet streckkodsspecifikation
public static readonly SingleDecodeType Postnet
Fältvärde
QR
Anger att data ska avkodas med QR Code streckkodsspecifikation
public static readonly SingleDecodeType QR
Fältvärde
RM4SCC
Anger att data ska avkodas med RM4SCC streckkodsspecifikation. RM4SCC (Royal Mail 4-state Customer Code) används för automatiserad postsortering i Storbritannien.
public static readonly SingleDecodeType RM4SCC
Fältvärde
RectMicroQR
Anger att data ska avkodas med RectMicroQR (rMQR) Code streckkodsspecifikation
public static readonly SingleDecodeType RectMicroQR
Fältvärde
SCC14
Anger att data ska avkodas med SCC14 streckkodsspecifikation
public static readonly SingleDecodeType SCC14
Fältvärde
SSCC18
Anger att data ska avkodas med SSCC18 streckkodsspecifikation
public static readonly SingleDecodeType SSCC18
Fältvärde
Standard2of5
Anger att data ska avkodas med Standard 2 of 5 streckkodsspecifikation
public static readonly SingleDecodeType Standard2of5
Fältvärde
Supplement
Anger att data ska avkodas med Supplement(EAN2, EAN5) streckkodsspecifikation
public static readonly SingleDecodeType Supplement
Fältvärde
SwissPostParcel
Anger att data ska avkodas med Swiss Post Parcel Barcode streckkodsspecifikation
public static readonly SingleDecodeType SwissPostParcel
Fältvärde
Types1D
Anger att data kommer att kontrolleras med alla 1D streckkodssymbologier
public static readonly MultyDecodeType Types1D
Fältvärde
Types2D
Anger att data kommer att kontrolleras med alla 2D streckkodssymbologier
public static readonly MultyDecodeType Types2D
Fältvärde
UPCA
Anger att data ska avkodas med UPC-A streckkodsspecifikation
public static readonly SingleDecodeType UPCA
Fältvärde
UPCE
Anger att data ska avkodas med UPC-E streckkodsspecifikation
public static readonly SingleDecodeType UPCE
Fältvärde
VIN
Anger att data ska avkodas med VIN (Vehicle Identification Number) streckkodsspecifikation
public static readonly SingleDecodeType VIN
Fältvärde
Egenskaper
AllSupportedTypesArray
Hämtar en array som representerar AllSupportedTypes
public static SingleDecodeType[] AllSupportedTypesArray { get; }
Egenskapsvärde
Metoder
GetNames()
Hämtar en array med namnen på avkodningstyperna.
public static string[] GetNames()
Återgår
string[]
En strängarray med namnen på avkodningstyperna.
Is1D(BaseDecodeType)
Bestämmer om den angivna Aspose.BarCode.BarCodeRecognition.BaseDecodeType innehåller någon 1D streckkodssymbologi
public static bool Is1D(BaseDecodeType symbology)
Parametrar
symbology
BaseDecodeType
Den Aspose.BarCode.BarCodeRecognition.BaseDecodeType som ska testas.
Återgår
Returnerar true om Aspose.BarCode.BarCodeRecognition.BaseDecodeType innehåller någon 1D streckkodssymbologi; annars returnerar false.
Is2D(BaseDecodeType)
Bestämmer om den angivna Aspose.BarCode.BarCodeRecognition.BaseDecodeType innehåller någon 2D streckkodssymbologi
public static bool Is2D(BaseDecodeType symbology)
Parametrar
symbology
BaseDecodeType
Den Aspose.BarCode.BarCodeRecognition.BaseDecodeType som ska testas.
Återgår
Returnerar true om Aspose.BarCode.BarCodeRecognition.BaseDecodeType innehåller någon 2D streckkodssymbologi; annars returnerar false.
IsPostal(BaseDecodeType)
Bestämmer om den angivna Aspose.BarCode.BarCodeRecognition.BaseDecodeType innehåller någon Postal streckkodssymbologi
public static bool IsPostal(BaseDecodeType symbology)
Parametrar
symbology
BaseDecodeType
Den Aspose.BarCode.BarCodeRecognition.BaseDecodeType som ska testas.
Återgår
Returnerar true om Aspose.BarCode.BarCodeRecognition.BaseDecodeType innehåller någon Postal streckkodssymbologi; annars returnerar false.
Parse(string, out SingleDecodeType)
Konverterar strängrepresentationen av en SingleDecodeType till dess instans. Ett returvärde indikerar om konverteringen lyckades eller misslyckades.
public static bool Parse(string parsingType, out SingleDecodeType result)
Parametrar
parsingType
string
En sträng som innehåller en SingleDecodeType i formatet “EAN8” eller “EAN13” eller “CodaBar”… att konvertera.
result
SingleDecodeType
En faktisk SingleDecodeType returneras, när konverteringen har slutförts framgångsrikt; annars returneras odefinierad typ: DecodeType.None.
Återgår
true om parsingType konverterades framgångsrikt; annars false.
ScanSets(params BaseDecodeType[])
Specificera skanningsuppsättningar genom streckkodstyper
public static BaseDecodeType ScanSets(params BaseDecodeType[] barcodeTypes)
Parametrar
barcodeTypes
BaseDecodeType[]
Array av enskilda och multipla avkodningstyper
Återgår
En multipel avkodningstyp
TryParse(string, out SingleDecodeType)
Konverterar strängrepresentationen av en SingleDecodeType till dess instans. Ett returvärde indikerar om konverteringen lyckades eller misslyckades.
public static bool TryParse(string parsingType, out SingleDecodeType result)
Parametrar
parsingType
string
En sträng som innehåller en SingleDecodeType i formatet “EAN8” eller “EAN13” eller “CodaBar”… att konvertera.
result
SingleDecodeType
En faktisk SingleDecodeType returneras, när konverteringen har slutförts framgångsrikt; annars returneras odefinierad typ: DecodeType.None.
Återgår
true om parsingType konverterades framgångsrikt; annars false.
TryParse(string, out MultyDecodeType)
Konverterar strängrepresentationen av en MultyDecodeType till dess instans. Ett returvärde indikerar om konverteringen lyckades eller misslyckades.
public static bool TryParse(string parsingType, out MultyDecodeType result)
Parametrar
parsingType
string
En sträng i formatet antingen “AllSupportedTypes” eller “EAN8,EAN13,CodaBar” att konvertera.
result
MultyDecodeType
En faktisk MultyDecodeType returneras, när konverteringen har slutförts framgångsrikt; annars returneras odefinierad typ: new MultyDecodeType(DecodeType.None)
Återgår
true om parsingType konverterades framgångsrikt; annars false.