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);

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

public void PrintPaint(System.Windows.Media.DrawingContext drawingContext, double stretchFactor);

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.