Leadtools.Barcode.Deprecated Namespace > BarcodeEngine Class : Write Method |
public void Write( RasterImage image, BarcodeData data, BarcodeColor codeColor, BarcodeWriteFlags flags, Barcode1d code1d, BarcodeWritePdf codePdf, BarcodeWriteDatamatrix codeDatamatrix, BarcodeWriteQr codeQr, LeadRect sizeRectangle )
'Declaration Public Sub Write( _ ByVal image As RasterImage, _ ByVal data As BarcodeData, _ ByVal codeColor As BarcodeColor, _ ByVal flags As BarcodeWriteFlags, _ ByVal code1d As Barcode1d, _ ByVal codePdf As BarcodeWritePdf, _ ByVal codeDatamatrix As BarcodeWriteDatamatrix, _ ByVal codeQr As BarcodeWriteQr, _ ByVal sizeRectangle As LeadRect _ )
'Usage Dim instance As BarcodeEngine Dim image As RasterImage Dim data As BarcodeData Dim codeColor As BarcodeColor Dim flags As BarcodeWriteFlags Dim code1d As Barcode1d Dim codePdf As BarcodeWritePdf Dim codeDatamatrix As BarcodeWriteDatamatrix Dim codeQr As BarcodeWriteQr Dim sizeRectangle As LeadRect instance.Write(image, data, codeColor, flags, code1d, codePdf, codeDatamatrix, codeQr, sizeRectangle)
public void Write( RasterImage image, BarcodeData data, BarcodeColor codeColor, BarcodeWriteFlags flags, Barcode1d code1d, BarcodeWritePdf codePdf, BarcodeWriteDatamatrix codeDatamatrix, BarcodeWriteQr codeQr, LeadRect sizeRectangle )
function Leadtools.Barcode.Deprecated.BarcodeEngine.Write( image , data , codeColor , flags , code1d , codePdf , codeDatamatrix , codeQr , sizeRectangle )
You must pass a valid RasterImage to this method. If you do not pass a valid Raster image, the method will throw an exception.
The Write method will write the barcode symbol over the image using the rectangle defined by the Location property.
However, if the bitmap has a region, this function will write the barcode using the region boundaries. If the region is non-rectangular, the barcode will be written to the rectangle bounding the region and subsequently clipped to the given region. This might cause the resulting barcode to be unreadable.
If you set the flags parameter to .UseColors, then this method will use the codeColor parameter, otherwise the method will ignore it and use the default colors of black for bars and white for spaces.
Using colors does not apply for 1 bit per pixel images.
The BarcodeWriteFlags.UseColors and BarcodeWriteFlags.Transparent are used with all barcode types.
For a table containing information useful when writing 1D barcode data see http://www.leadtools.com/SDK/Document/Document-Addon-Barcodelinear1D-chart.htm.