Click or drag to resize

BarcodeWriterCreateBarcode Method (String, BarcodeWriterEncoding, Int32, Int32)

Creates (renders) a barcode representing a string value.

Namespace:  IronBarCode
Assembly:  IronBarCode (in IronBarCode.dll) Version: 4.0.1.22591 (4.0.1.0)
Syntax
public static GeneratedBarcode CreateBarcode(
	string Value,
	BarcodeWriterEncoding BarcodeType,
	int MaxWidth,
	int MaxHeight
)

Parameters

Value
Type: SystemString
The value of the barcode as a string.
BarcodeType
Type: IronBarCodeBarcodeWriterEncoding
Type of the barcode encoding type. Supports many popular barcode formats including QR Codes.
MaxWidth
Type: SystemInt32
The maximum width (in pixels) of the barcode image which will be rendered.
MaxHeight
Type: SystemInt32
The maximum height (in pixels) of the barcode image which will be rendered.

Return Value

Type: GeneratedBarcode
A GeneratedBarcode object which can be manipulated, annotated and saved to a System.Drawing.Image, an object, image file, PDF, MediaURL or data stream.
See Also