static public method BarcodesMaker.GetBarcode

Brief

Generates a barcode image from the input data and returns the image as an array of bytes.

Declaration
C#
Byte[]  GetBarcode (string data, BarcodeType barcodeType, Color lineColor, Color backColor, bool showDataLabel, MeasureBarcodeUnit heightToCut, int scaleMultiplier = 2, bool hasQuietZones = True, BarcodeRotation barcodeRotation = 0)

Parameters
data

The input data for the barcode.

barcodeType

The barcode type.

lineColor

The color of barcode lines.

backColor

The background color.

showDataLabel

Defines whether the input data is printed under the barcode lines.

heightToCut

The height in pixels or in percent to be cut from the top of the barcode lines to reduce the standard height.

scaleMultiplier

The multiplier of the barcode width for better text rendering.

hasQuietZones

Defines whether the barcode has quiet zones.

barcodeRotation

Defines barcode rotation angle.

Declared in BarcodesMaker

back