PDFDataMatrixBarcode¶
Namespace: O2S.Components.PDF4NET.Graphics
Defines a DataMatrix barcode.
Inheritance Object → PDFBarcode → PDF2DBarcode → PDFDataMatrixBarcode
Constructors¶
PDFDataMatrixBarcode()¶
Initializes a new PDFDataMatrixBarcode object.
Properties¶
BackgroundColor¶
Gets or sets the barcode background color.
Property Value
PDFColor
A PDFColor that represents the color used to fill the barcode background.
BarcodeSize¶
Gets or sets the barcode size.
Property Value
DataMatrixBarcodeSize
A DataMatrixBarcodeSize that represents the barcode size.
BarColor¶
Gets or sets the barcode bar color.
Property Value
PDFColor
A PDFColor that represents the color used to draw the barcode bars.
BinaryData¶
Gets or sets the binary data.
Property Value
Byte[]
An array of bytes representing the data to be encoded.
Data¶
Gets or sets the barcode data.
Property Value
String
A string of characters that represents the data to be encoded as a barcode.
Remarks
Each barcode type specifies the characters it supports.
DataEncoding¶
Gets or sets the data encoding.
Property Value
DataMatrixEncoding
A DataMatrixEncoding that specifies how that data is encoded in the barcode.
Height¶
Gets the barcode height.
Property Value
Double
The height of the barcode.
QuietZones¶
Gets the barcode quiet zones.
Property Value
PDFBarcodeQuietZones
Left, right, top and bottom quiet zones.
TextColor¶
Gets or sets the barcode text color.
Property Value
PDFColor
A PDFColor that represents the color used to display the barcode text.
Width¶
Gets the barcode width.
Property Value
Double
The width of the barcode.
XDimension¶
Gets or sets the X dimension.
Property Value
Double
The width of a narrow barcode bar.
YDimension¶
Gets or sets the Y dimension.
Property Value
Double
The height of a barcode bar.
Methods¶
Randomize253State(Int32, Int32)¶
Applies the 253-state randomizing algorithm on padding values.
Parameters
padCodeword Int32
The padding codeword, usually 129.
position Int32
The position of the padding codeword (0 based index).
Returns
Byte
The randomized value.