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)

public void PrintPaint(object graphics, object position);
Public Sub PrintPaint(ByVal graphics As Object, ByVal position As Object)

PrintPaint(System.Windows.Media.DrawingContext, Double)

public void PrintPaint(System.Windows.Media.DrawingContext drawingContext, double stretchFactor);
Public Sub PrintPaint(drawingContext As System.Windows.Media.DrawingContext, stretchFactor as Double)

Parameters

Parameter Description
graphics Specifies the object of type System.Drawing.Graphics on which the barcode is drawn.
drawingContext Specifies the object of type System.Windows.Media.DrawingContext on which the barcode is drawn.
position Specifies the position to draw on the specified object of type System.Drawing.Graphics.
stretchFactor Specifies the stretch factor to draw on the specified object of type System.Windows.Media.DrawingContext.