WPF.Barcode.TXBarcodeControl.PrintPaint Method

Draws the barcode on a specific object of type System.Drawing.Graphics or System.Windows.Media.DrawingContext with specified bounds or stretch factor.

PrintPaint(Object, Object)

Draws the barcode on a specific object of type System.Drawing.Graphics with the specified bounds. The parameter position must be an object of type System.Drawing.Rectangle.

[C#]
public void PrintPaint(object graphics, object position);
[Visual Basic]
Public Sub PrintPaint(ByVal graphics As Object, ByVal position As Object)
Parameter Description
graphics

Specifies the object of type System.Drawing.Graphics on which the barcode is drawn.

position

Specifies the position to draw on the specified object of type System.Drawing.Graphics.

PrintPaint(DrawingContext, Double)

Draws the barcode on a specific object of type System.Windows.Media.DrawingContext with the specified stretch factor.

[C#]
public void PrintPaint(System.Windows.Media.DrawingContext drawingContext, double stretchFactor);
[Visual Basic]
Public Sub PrintPaint(drawingContext As System.Windows.Media.DrawingContext, stretchFactor as Double)
Parameter Description
drawingContext

Specifies the object of type System.Windows.Media.DrawingContext on which the barcode is drawn.

stretchFactor

Specifies the stretch factor to draw on the specified object of type System.Windows.Media.DrawingContext.