PdfSharp.BarCodes
Represents the base class of all bar codes.
Initializes a new instance of the class.
Creates a bar code from the specified code type.
Creates a bar code from the specified code type.
Creates a bar code from the specified code type.
Creates a bar code from the specified code type.
When overridden in a derived class gets or sets the wide narrow ratio.
Gets or sets the location of the text next to the bar code.
Gets or sets the length of the data that defines the bar code.
Gets or sets the optional start character.
Gets or sets the optional end character.
Gets or sets a value indicating whether the turbo bit is to be drawn.
(A turbo bit is something special to Kern (computer output processing) company (as far as I know))
When defined in a derived class renders the code.
Holds all temporary information needed during rendering.
String resources for the empira barcode renderer.
Implementation of the Code 2 of 5 bar code.
Initializes a new instance of Interleaved2of5.
Initializes a new instance of Interleaved2of5.
Initializes a new instance of Interleaved2of5.
Initializes a new instance of Interleaved2of5.
Returns an array of size 5 that represents the thick (true) and thin (false) lines or spaces
representing the specified digit.
The digit to represent.
Renders the bar code.
Calculates the thick and thin line widths,
taking into account the required rendering size.
Renders the next digit pair as bar code element.
Checks the code to be convertible into an interleaved 2 of 5 bar code.
The code to be checked.
Implementation of the Code 3 of 9 bar code.
Initializes a new instance of Standard3of9.
Initializes a new instance of Standard3of9.
Initializes a new instance of Standard3of9.
Initializes a new instance of Standard3of9.
Returns an array of size 9 that represents the thick (true) and thin (false) lines and spaces
representing the specified digit.
The character to represent.
Calculates the thick and thin line widths,
taking into account the required rendering size.
Checks the code to be convertible into a standard 3 of 9 bar code.
The code to be checked.
Renders the bar code.
Represents the base class of all codes.
Initializes a new instance of the class.
Gets or sets the size.
Gets or sets the text the bar code shall represent.
Always MiddleCenter.
Gets or sets the drawing direction.
When implemented in a derived class, determines whether the specified string can be used as Text
for this bar code type.
The code string to check.
True if the text can be used for the actual barcode.
Calculates the distance between an old anchor point and a new anchor point.
Defines the DataMatrix 2D barcode. THIS IS AN EMPIRA INTERNAL IMPLEMENTATION. THE CODE IN
THE OPEN SOURCE VERSION IS A FAKE.
Initializes a new instance of CodeDataMatrix.
Initializes a new instance of CodeDataMatrix.
Initializes a new instance of CodeDataMatrix.
Initializes a new instance of CodeDataMatrix.
Initializes a new instance of CodeDataMatrix.
Initializes a new instance of CodeDataMatrix.
Initializes a new instance of CodeDataMatrix.
Initializes a new instance of CodeDataMatrix.
Initializes a new instance of CodeDataMatrix.
Sets the encoding of the DataMatrix.
Gets or sets the size of the Matrix¹ Quiet Zone.
Renders the matrix code.
Determines whether the specified string can be used as data in the DataMatrix.
The code to be checked.
Represents an OMR code.
Initializes a new OmrCode with the given data.
Renders the OMR code.
Gets or sets a value indicating whether a synchronize mark is rendered.
Gets or sets the distance of the markers.
Gets or sets the thickness of the markers.
Determines whether the specified string can be used as Text for the OMR code.
Creates the XImage object for a DataMatrix.
Possible ECC200 Matrices.
Creates the DataMatrix code.
Encodes the DataMatrix.
Encodes the barcode with the DataMatrix ECC200 Encoding.
Places the data in the right positions according to Annex M of the ECC200 specification.
Places the ECC200 bits in the right positions.
Calculate and append the Reed Solomon Code.
Initialize the Galois Field.
Initializes the Reed-Solomon Encoder.
Encodes the Reed-Solomon encoding.
Creates a DataMatrix image object.
A hex string like "AB 08 C3...".
I.e. 26 for a 26x26 matrix
Creates a DataMatrix image object.
Creates a DataMatrix image object.
Specifies whether and how the text is displayed at the code area.
The anchor is located top left.
The anchor is located top center.
The anchor is located top right.
The anchor is located middle left.
The anchor is located middle center.
The anchor is located middle right.
The anchor is located bottom left.
The anchor is located bottom center.
The anchor is located bottom right.
Specifies the drawing direction of the code.
Does not rotate the code.
Rotates the code 180° at the anchor position.
Rotates the code 180° at the anchor position.
Rotates the code 180° at the anchor position.
Specifies the type of the bar code.
The standard 2 of 5 interleaved bar code.
The standard 3 of 9 bar code.
The OMR code.
The data matrix code.
The encoding used for data in the data matrix code.
ASCII text mode.
C40 text mode, potentially more compact for short strings.
Text mode.
X12 text mode, potentially more compact for short strings.
EDIFACT mode uses six bits per character, with four characters packed into three bytes.
Base 256 mode data starts with a length indicator, followed by a number of data bytes.
A length of 1 to 249 is encoded as a single byte, and longer lengths are stored as two bytes.
Specifies whether and how the text is displayed at the code.
No text is drawn.
The text is located above the code.
The text is located below the code.
The text is located above within the code.
The text is located below within the code.
Represents the base class of all 2D codes.
Initializes a new instance of the class.
Gets or sets the encoding.
Gets or sets the number of columns.
Gets or sets the number of rows.
Gets or sets the text.
Gets or sets the MatrixImage.
Getter throws if MatrixImage is null.
Use HasMatrixImage to test if image was created.
MatrixImage throws if it is null. Here is a way to check if the image was created.
When implemented in a derived class renders the 2D code.
Determines whether the specified string can be used as Text for this matrix code type.
Internal base class for several bar code types.
Initializes a new instance of the class.
Gets or sets the ratio between thick and thin lines. Must be between 2 and 3.
Optimal and also default value is 2.6.
Renders a thick or thin line for the bar code.
Determines whether a thick or a thin line is about to be rendered.
Renders a thick or thin gap for the bar code.
Determines whether a thick or a thin gap is about to be rendered.
Renders a thick bar before or behind the code.
Gets the width of a thick or a thin line (or gap). CalcLineWidth must have been called before.
Determines whether a thick line’s width shall be returned.
Extension methods for drawing bar codes.
Draws the specified bar code.
Draws the specified bar code.
Draws the specified bar code.
Draws the specified data matrix code.
Draws the specified data matrix code.
Extension method GetSubArray required for the built-in range operator (e.g.'[1..9]').
Fun fact: This class must be compiled into each assembly. If it is only visible through
InternalsVisibleTo code will not compile with .NET Framework 4.6.2 and .NET Standard 2.0.
Slices the specified array using the specified range.