Namespaces | |
BarCodeRecognition | |
Common | |
Generation | |
Classes | |
class | BuildVersionInfo |
Contains the current build version information. More... | |
class | Caption |
The text caption shown in the barcode image. There are two captions: CaptionBelow and CaptionAbove More... | |
class | Details_BarCodeException |
Represents the exception for creating barcode image. More... | |
class | Details_InvalidCodeException |
The Exception will be thrown when invalid characters contained in the code text. More... | |
class | ExtCodetextBuilder |
Helper class for automatic codetext generation of the Extended Codetext Mode More... | |
class | License |
Provides methods to license the component. More... | |
class | MarginsF |
Specifies the margins of a barcode image. More... | |
class | Metered |
Provides methods to set metered key. More... | |
class | QrExtCodetextBuilder |
class | Resolution |
The resolution information of the barcode image More... | |
Typedefs | |
using | BarCodeException = System::ExceptionWrapper< Details_BarCodeException > |
using | InvalidCodeException = System::ExceptionWrapper< Details_InvalidCodeException > |
Functions | |
bool | operator== (System::SharedPtr< Resolution > left, System::SharedPtr< Resolution > right) |
bool | operator!= (System::SharedPtr< Resolution > left, System::SharedPtr< Resolution > right) |
using Aspose::BarCode::BarCodeException = typedef System::ExceptionWrapper<Details_BarCodeException> |
using Aspose::BarCode::InvalidCodeException = typedef System::ExceptionWrapper<Details_InvalidCodeException> |
|
strong |
Specifies the Aztec symbol mode.
This sample shows how to change Aztec Symbol mode and save a BarCode image.
|
strong |
Specifies the file format of the image.
|
strong |
Specifies the style of dashed border lines.
|
strong |
|
strong |
Specifies the start or stop symbol of the Codabar barcode specification.
Defines the interpreting type (CTable, NTable or Other) of customer information for AustralianPost BarCode.
Enumerator | |
---|---|
CTable | Use CTable to interpret the customer information. Allows A..Z, a..z, 1..9, space and # sing. This sample shows how to generate and recognize Australia Post barcode with CTable Interpreting Type. [C#] using (BarCodeBuilder builder = new BarCodeBuilder()) { builder.SymbologyType = Symbology.AustraliaPost; builder.CustomerInformationInterpretingType = CustomerInformationInterpretingType.CTable; builder.CodeText = "5912345678ABCde"; using (Bitmap image = builder.GenerateBarCodeImage()) using (BarCodeReader r = new BarCodeReader(image, DecodeType.AustraliaPost)) { r.CustomerInformationInterpretingType = CustomerInformationInterpretingType.CTable; while (r.Read()) { Console.WriteLine("BarCode Type: " + r.GetCodeType()); Console.WriteLine("BarCode CodeText: " + r.GetCodeText()); } } } [VB.NET] Using builder As BarCodeBuilder = New BarCodeBuilder() builder.SymbologyType = Symbology.AustraliaPost builder.CustomerInformationInterpretingType = CustomerInformationInterpretingType.CTable builder.CodeText = "5912345678ABCde" Using image As Bitmap = builder.GenerateBarCodeImage() Using reader As BarCodeReader = New BarCodeReader(image, DecodeType.AustraliaPost) While r.Read() Console.WriteLine("BarCode Type: " + r.GetReadType()) Console.WriteLine("BarCode CodeText: " + r.GetCodeText()) End While End Using End Using End Using |
NTable | Use NTable to interpret the customer information. Allows digits. This sample shows how to generate and recognize Australia Post barcode with NTable Interpreting Type. [C#] using (BarCodeBuilder builder = new BarCodeBuilder()) { builder.SymbologyType = Symbology.AustraliaPost; builder.CustomerInformationInterpretingType = CustomerInformationInterpretingType.NTable; builder.CodeText = "59123456781234567"; using (Bitmap image = builder.GenerateBarCodeImage()) using (BarCodeReader r = new BarCodeReader(image, DecodeType.AustraliaPost)) { r.CustomerInformationInterpretingType = CustomerInformationInterpretingType.NTable; while (r.Read()) { Console.WriteLine("BarCode Type: " + r.GetCodeType()); Console.WriteLine("BarCode CodeText: " + r.GetCodeText()); } } } [VB.NET] Using builder As BarCodeBuilder = New BarCodeBuilder() builder.SymbologyType = Symbology.AustraliaPost builder.CustomerInformationInterpretingType = CustomerInformationInterpretingType.NTable builder.CodeText = "59123456781234567" Using image As Bitmap = builder.GenerateBarCodeImage() Using reader As BarCodeReader = New BarCodeReader(image, DecodeType.AustraliaPost) While r.Read() Console.WriteLine("BarCode Type: " + r.GetReadType()) Console.WriteLine("BarCode CodeText: " + r.GetCodeText()) End While End Using End Using End Using |
Other | Do not interpret the customer information. Allows 0, 1, 2 or 3 symbol only. This sample shows how to generate and recognize Australia Post barcode without Customer Interpreting Type. [C#] using (BarCodeBuilder builder = new BarCodeBuilder()) { builder.SymbologyType = Symbology.AustraliaPost; builder.CustomerInformationInterpretingType = CustomerInformationInterpretingType.Other; builder.CodeText = "59123456780123012301230123"; using (Bitmap image = builder.GenerateBarCodeImage()) using (BarCodeReader r = new BarCodeReader(image, DecodeType.AustraliaPost)) { r.CustomerInformationInterpretingType = CustomerInformationInterpretingType.Other; while (r.Read()) { Console.WriteLine("BarCode Type: " + r.GetCodeType()); Console.WriteLine("BarCode CodeText: " + r.GetCodeText()); } } } [VB.NET] Using builder As BarCodeBuilder = New BarCodeBuilder() builder.SymbologyType = Symbology.AustraliaPost builder.CodeText = "59123456780123012301230123" Using image As Bitmap = builder.GenerateBarCodeImage() Using reader As BarCodeReader = New BarCodeReader(image, DecodeType.AustraliaPost) While r.Read() Console.WriteLine("BarCode Type: " + r.GetReadType()) Console.WriteLine("BarCode CodeText: " + r.GetCodeText()) End While End Using End Using End Using |
|
strong |
Specify the type of the ECC to encode.
|
strong |
DataMatrix encoder's encoding mode, default to Auto
|
strong |
Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details about the used references for encoding the data in the symbol. Current implementation consists all well known charset encodings. Currently, it is used only for QR 2D barcode.
This sample shows how to use ECI encoding and save a BarCode image.
|
strong |
Enable checksum during generation for 1D barcodes.
Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible.
Checksum never used: Codabar
Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN
Checksum always used: Rest symbologies
Enumerator | |
---|---|
Default | If checksum is required by the specification - it will be attached. |
Yes | Always use checksum if possible. |
No | Do not use checksum. |
|
strong |
|
strong |
ITF14 border type of barcode
|
strong |
|
strong |
pdf417 barcode's error correction level, from level 0 to level 9, level 0 means no error correction, level 9 means best error correction
Enumerator | |
---|---|
Level0 | level = 0. |
Level1 | level = 1. |
Level2 | level = 2. |
Level3 | level = 3. |
Level4 | level = 4. |
Level5 | level = 5. |
Level6 | level = 6. |
Level7 | level = 7. |
Level8 | level = 8. |
|
strong |
Encoding mode for QR barcodes. It is recommended to Use Auto with CodeTextEncoding = Encoding.UTF8 for Latin symbols or digits and Utf8BOM for Unicode symbols.
Enumerator | |
---|---|
Auto | Encode codetext as is non-Unicode charset. If there is any Unicode character, the codetext will be encoded with value which is set in CodeTextEncoding. |
Bytes | Encode codetext as plain bytes. If it detects any Unicode character, the character will be encoded as two bytes, lower byte first. |
Utf8BOM | Encode codetext with UTF8 encoding with first ByteOfMark character. |
Utf16BEBOM | Encode codetext with UTF8 encoding with first ByteOfMark character. It can be problems with some barcode scanners. |
ECIEncoding | Encode codetext with value set in the ECIEncoding property. It can be problems with some old (pre 2006) barcode scanners. This sample shows how to use ECI encoding and save a BarCode image. [C#] { builder.CodeText = "12345TEXT"; builder.QREncodeMode = QREncodeMode.ECIEncoding; builder.QREncodeType = QREncodeType.ForceQR; builder.ECIEncoding = ECIEncodings.UTF8; builder.Save("test.bmp"); } [VB.NET] builder.CodeText = "12345TEXT" builder.QREncodeMode = QREncodeMode.ECIEncoding; builder.QREncodeType = QREncodeType.ForceQR builder.ECIEncoding = ECIEncodings.UTF8 builder.Save("test.bmp") End Using |
ExtendedCodetext | Extended Channel mode which supports FNC1 first position, FNC1 second position and multi ECI modes. It is better to use QrExtCodetextBuilder for extended codetext generation. Use Display2DText property to set visible text to removing managing characters. Encoding Principles: All symbols "\" must be doubled "\\" in the codetext. FNC1 in first position is set in codetext as as "<FNC1>" FNC1 in second position is set in codetext as as "<FNC1(value)>". The value must be single symbols (a-z, A-Z) or digits from 0 to 99. Group Separator for FNC1 modes is set as 0x1D character '\u001D' If you need to insert "<FNC1>" string into barcode write it as "<\FNC1>" ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier TO disable current ECI mode and convert to default JIS8 mode zero mode ECI indetifier is set. "\000000" All unicode characters after ECI identifier are automatically encoded into correct character codeset. This sample shows how to use FNC1 first position in Extended Mode. [C#] //create codetext QrExtCodetextBuilder lTextBuilder = new QrExtCodetextBuilder(); lTextBuilder.AddFNC1FirstPosition(); lTextBuilder.AddPlainCodetext("000%89%%0"); lTextBuilder.AddFNC1GroupSeparator(); lTextBuilder.AddPlainCodetext("12345<FNC1>"); //generate codetext string lCodetext = lTextBuilder.GetExtendedCodetext(); //generate using(BarCodeBuilder builder = new BarCodeBuilder()) { builder.SymbologyType = Symbology.QR; builder.QREncodeMode = QREncodeMode.ExtendedCodetext; builder.QRErrorLevel = QRErrorLevel.LevelL; builder.CodeText = lCodetext; builder.Display2DText = "My Text"; builder.Save("test.bmp"); } This sample shows how to use FNC1 second position in Extended Mode. [C#] //create codetext QrExtCodetextBuilder lTextBuilder = new QrExtCodetextBuilder(); TextBuilder.AddFNC1SecondPosition("12"); TextBuilder.AddPlainCodetext("TRUE3456"); //generate codetext string lCodetext = lTextBuilder.GetExtendedCodetext(); //generate using(BarCodeBuilder builder = new BarCodeBuilder()) { builder.SymbologyType = Symbology.QR; builder.QREncodeMode = QREncodeMode.ExtendedCodetext; builder.QRErrorLevel = QRErrorLevel.LevelL; builder.CodeText = lCodetext; builder.Display2DText = "My Text"; builder.Save("test.bmp"); } This sample shows how to use multi ECI mode in Extended Mode. [C#] //create codetext QrExtCodetextBuilder lTextBuilder = new QrExtCodetextBuilder(); TextBuilder.AddECICodetext(ECIEncodings.Win1251, "Will"); TextBuilder.AddECICodetext(ECIEncodings.UTF8, "Right"); TextBuilder.AddECICodetext(ECIEncodings.UTF16BE, "Power"); TextBuilder.AddPlainCodetext(@"t\e\\st"); <br> //generate codetext string lCodetext = lTextBuilder.GetExtendedCodetext(); //generate using (BarCodeBuilder builder = new BarCodeBuilder()) { builder.SymbologyType = Symbology.QR; builder.QREncodeMode = QREncodeMode.ExtendedCodetext; builder.QRErrorLevel = QRErrorLevel.LevelL; builder.CodeText = lCodetext; builder.Display2DText = "My Text"; builder.Save("test.bmp"); } |
|
strong |
QR / MicroQR selector mode. Select ForceQR for standard QR symbols, Auto for MicroQR. ForceMicroQR is used for strongly MicroQR symbol generation if it is possible.
|
strong |
|
strong |
Version of QR Code. From Version1 to Version40 for QR code and from M1 to M4 for MicroQr.
|
strong |
Specifies the resolution mode used to create barcode image.
|
strong |
bool Aspose::BarCode::operator!= | ( | System::SharedPtr< Resolution > | left, |
System::SharedPtr< Resolution > | right | ||
) |
bool Aspose::BarCode::operator== | ( | System::SharedPtr< Resolution > | left, |
System::SharedPtr< Resolution > | right | ||
) |