Class BarcodeGS1Base
Base methods for GS1 DataBar barcodes.
Inheritance
System.Object
BarcodeGS1Base
Inherited Members
Namespace: FastReport.Barcode
Assembly: FastReport.Base.dll
Syntax
public class BarcodeGS1Base : LinearBarcodeBase
Properties
EncodedData
Declaration
protected List<string> EncodedData { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |
Methods
DrawLineBars(String, IGraphics, Single, RectangleF, Boolean, Boolean)
Drawing lines of strokes
Declaration
protected void DrawLineBars(string data, IGraphics g, float zoom, RectangleF rect, bool reversColor, bool separatorLine = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | data | Encoded data in width strokes; For separate line, these are colored strokes, any value that is not equal to zero is black. |
IGraphics | g | |
System.Single | zoom | Scale size. |
RectangleF | rect | Use left of rectangle for to set start position x, top for top pos y, bottom for bottom pos y of strokes. |
System.Boolean | reversColor | Flag for reversing color by default first strokes white, disabled for separate line. |
System.Boolean | separatorLine | Flag separete line |
GetDefaultValue()
Get default value of this barcode
Declaration
public override string GetDefaultValue()
Returns
Type | Description |
---|---|
System.String |
Overrides
GetGS1Widths(Int32, Int32, Int32, Int32, Int32)
Routine to generate widths for GS1 elements for a given value.
Declaration
protected List<int> GetGS1Widths(int val, int n, int elements, int maxWidth, int noNarrow)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | val | Required value. |
System.Int32 | n | Number of modules. |
System.Int32 | elements | Elements in a set (GS1 omni based and Expanded = 4; GS1 Limited = 7). |
System.Int32 | maxWidth | Maximum module width of an element. |
System.Int32 | noNarrow | False will skip patterns without a one module wide element. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Int32> | Element widths |