Namespace: PdfSharp.Drawing.BarCodes
Internal base class for several bar code types.
public abstract class ThickThinBarCode : BarCode
Inheritance Object → CodeBase → BarCode → ThickThinBarCode
Gets or sets the ratio between thick and thin lines. Must be between 2 and 3. Optimal and also default value is 2.6.
public double WideNarrowRatio { get; set; }
Gets or sets the location of the text next to the bar code.
public TextLocation TextLocation { get; set; }
Gets or sets the length of the data that defines the bar code.
public int DataLength { get; set; }
Gets or sets the optional start character.
public char StartChar { get; set; }
Gets or sets the optional end character.
public char EndChar { get; set; }
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))
public bool TurboBit { get; set; }
Gets or sets the size.
public XSize Size { get; set; }
Gets or sets the text the bar code shall represent.
public string Text { get; set; }
Always MiddleCenter.
public AnchorType Anchor { get; set; }
Gets or sets the drawing direction.
public CodeDirection Direction { get; set; }
Initializes a new instance of the ThickThinBarCode class.
public ThickThinBarCode(string code, XSize size, CodeDirection direction)
code
String
size
XSize
direction
CodeDirection
internal void InitRendering(BarCodeRenderInfo info)
info
BarCodeRenderInfo
Renders a thick or thin line for the bar code.
internal void RenderBar(BarCodeRenderInfo info, bool isThick)
info
BarCodeRenderInfo
isThick
Boolean
Determines whether a thick or a thin line is about to be rendered.
Renders a thick or thin gap for the bar code.
internal void RenderGap(BarCodeRenderInfo info, bool isThick)
info
BarCodeRenderInfo
isThick
Boolean
Determines whether a thick or a thin gap is about to be rendered.
Renders a thick bar before or behind the code.
internal void RenderTurboBit(BarCodeRenderInfo info, bool startBit)
info
BarCodeRenderInfo
startBit
Boolean
internal void RenderText(BarCodeRenderInfo info)
info
BarCodeRenderInfo
Gets the width of a thick or a thin line (or gap). CalcLineWidth must have been called before.
internal double GetBarWidth(BarCodeRenderInfo info, bool isThick)
info
BarCodeRenderInfo
isThick
Boolean
Determines whether a thick line’s width shall be returned.
internal abstract void CalcThinBarWidth(BarCodeRenderInfo info)
info
BarCodeRenderInfo