Click or drag to resize

BarCodeGeneratorGenerateImage Method (Size)

Generates an image with the rendered barcode based on the settings (IBarcodeSettings).

Namespace:  Spire.Barcode
Assembly:  Spire.Barcode (in Spire.Barcode.dll) Version: 5.9.4.0 (5.9.4.9040)
Syntax
public Image GenerateImage(
	Size barcodeSize
)

Parameters

barcodeSize
Type: System.DrawingSize

Return Value

Type: Image
The generated barcode image.
Exceptions
ExceptionCondition
BarCodeFormatException If the data in the settings can't be rendered by the selected barcode.
See Also