![]() |
No. 1 Bar Code SDK Provider for Java/.NET Professionals
|
Category | Properties | Value | Comments | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Basic | Property: data
URL: DATA |
Type: String
Default: "" |
Barcode value to encode
Data Matrix Valid Data Char Set:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Data Matrix Special |
Property: processTilde
URL: PROCESS-TILDE |
Type: bool
Default: true |
Set the processTilde property to true, if you want use the tilde character "~" to specify special characters in the input data. Default value is true.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Property: dataMode
URL: DATA-MODE |
Type: int
Default: 0 (DataMatrix.M_AUTO) |
Data Matrix data encoding mode.
Valid values are:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Property: formatMode
URL: FORMAT-MODE |
Type: int
Default: 0 (DataMatrix.F_10X10) |
Specifies the Data Matrix Format to use on that symbology. Valid values see class DataMatrix; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Property: fnc1Mode
URL: FNC1MODE |
Type: int
Default: IBarcode. FNC1_NONE (0) |
To encode GS1 compatible Data Matrix barcide, you need set fnc1Mode value to IBarcode.FNC1_ENABLE (1). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Property: structuredAppend
URL: STRUCTURED-APPEND |
Type: boolean
Default: false |
Set StructuredAppend property to true, then Structured Append is enabled. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Property: symbolCount
URL: SYMBOLE-COUNT |
Type: int
Default: 0 |
Set SymbolCount property to the number of total symbols which make the sequence. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Property: symbolIndex
URL: SYMBOL-INDEX |
Type: int
Default: 0 |
Set SymbolIndex property to the position of current symbol in the secuence (Start with 0). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Property: fileId
URL: FILE-ID |
Type: int
Default: 0 |
Set FileId property to be identified to the same file. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Barcode Size Related |
Property: uom
URL: UOM |
Type: int
Default: 0 (pixel) |
Unit of meature for all size related settings in the library.
Valid values: 0: pixel; 1: inch; 2: cm. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Property: X
URL: X |
Type: float
Default: 3 |
Barcode bar module width and height, default is 3 pixel | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Property: barcodeWidth
URL: BARCODE-WIDTH |
Type: float
Default: 0 |
Barcode image width.
If barcodeWidth setting is smaller than the barcode required minimum width, the library will automatically reset to barcode minimum width. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Property: barcodeHeight
URL: BARCODE-HEIGHT |
Type: float
Default: 0 |
Barcode image height.
If barcodeHeight setting is smaller than the barcode required minimum height, the library will automatically reset to barcode minimum height. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Property: leftMargin
URL: LEFT-MARGIN |
Type: float
Default: 0 |
Barcode image left margin size. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Property: rightMargin
URL: RIGHT-MARGIN |
Type: float
Default: 0 |
Barcode image right margin size. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Property: topMargin
URL: TOP-MARGIN |
Type: float
Default: 0 |
Barcode image top margin size. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Property: bottomMargin
URL: BOTTOM-MARGIN |
Type: float
Default: 0 |
Barcode image bottom margin size. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Property: resolution
URL: RESOLUTION |
Type: int
Default: 72 |
Barcode image resolution in DPI (Dots per inch). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Property: rotate
URL: ROTATE |
Type: int
Default: 0 (IBarcode.ROTATE_0) |
Valid values:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In WebStream query string, please use int value for Enums, "true" and "false" for bool. |
Generating barcode Data Matrix in Java Class example
DataMatrix barcode = new DataMatrix(); /* Data Matrix Valid data char set: ASCII values 0 - 127 in accordance with the US national version of ISO/IEC 646 ASCII values 128 - 255 in accordance with ISO 8859-1. These are referred to as extended ASCII. */ barcode.setData("112233445566"); barcode.setDataMode(DataMatrix.M_AUTO); // if your selected format mode doesnot have enough space to encode your data, // the library will choose the right format mode for you automatically. barcode.setFormatMode(DataMatrix.F_10X10); // Set the processTilde property to true, if you want use the tilde character "~" // to specify special characters in the input data. Default is false. // // 1) 1-byte character: ~0dd/~1dd/~2dd (character value from 000 ~ 255); ASCII character '~' is presented by ~126 // Strings from "~256" to "~299" are unused // modified to FS, GS, RS and US respectively. // 2) 2-byte character (Unicode): ~6ddddd (character value from 00000 ~ 65535) // Strings from "~665536" to "~699999" are unused // 3) for GS1 AI Code: // ~ai2: AI with 2 digits // ~ai3: AI with 3 digits // ~ai4: AI with 4 digits // ~ai5: AI with 5 digits // ~ai6: AI with 6 digits // ~ai7: AI with 7 digits // 4) ECI: ~7dddddd (valid value of dddddd from 000000 to 999999) // 5) ~rp: Reader Programming (for ASCII mode and Auto mode only) // This should be located at the beginning of the encoding data, e.g. data = "~rpABCD1234". // 6) ~m5: 05 Macro (for ASCII mode and Auto mode only) // This should be located at the beginning of the encoding data, e.g. data = "~m5ABCD1234". // 7) ~m6: 06 Macro (for ASCII mode and Auto mode only) // This should be located at the beginning of the encoding data, e.g. data = "~m6ABCD1234". barcode.setProcessTilde(true); // Unit of Measure, pixel, cm, or inch barcode.setUom(IBarcode.UOM_PIXEL); // barcode bar module width (X) in pixel barcode.setX(3f); barcode.setLeftMargin(0f); barcode.setRightMargin(0f); barcode.setTopMargin(0f); barcode.setBottomMargin(0f); // barcode image resolution in dpi barcode.setResolution(72); /* to save into gif file, file name end with .gif to save into jpeg file, file name end with .jpg to save into eps file, call method drawBarcode2EPS and file name end with .eps */ barcode.drawBarcode("C:\\datamatrix.gif");
Copyright © OnBarcode.com. All rights reserved.