MakeImage Method

Generates a barcode image in memory.

Syntax

image = object.MakeImage(imageType, width, height, isBarWidth)

Parameters

object

The Barcode Active Server Component

imageType

Numeric value indicating the image format:

width

Numeric value indicating either the desired width for the entire barcode or the width of the thinnest bar, in screen pixels, depending on the value of the isBarWidth parameter. Typically, it's more convenient to specify the width of the thinnest bar rather than that of the entire barcode.

height

Numeric value indicating the height of the barcode in screen pixels.

isBarWidth

Boolean value. If True, it indicates that the width parameter is the width of the tinnest bar; otherwise, it's the width of the entire barcode.

Return Value

Binary stream (SafeArray) corresponding to the in-memory representation of the generated image.

Remarks

To write the returned image to the HTTP response stream, you must use response.BinaryWrite in ASP, to prevent any text conversion.