Writes linear, PDF417, MicroPDF417, Data Matrix, and QR barcode symbols over the image.
public void Write(
Leadtools.RasterImage image,
Leadtools.Barcode.Deprecated.BarcodeData data,
Leadtools.Barcode.Deprecated.BarcodeColor codeColor,
Leadtools.Barcode.Deprecated.BarcodeWriteFlags flags,
Leadtools.Barcode.Deprecated.Barcode1d code1d,
Leadtools.Barcode.Deprecated.BarcodeWritePdf codePdf,
Leadtools.Barcode.Deprecated.BarcodeWriteDatamatrix codeDatamatrix,
Leadtools.Barcode.Deprecated.BarcodeWriteQr codeQr,
Leadtools.LeadRect sizeRectangle
)
Public Sub Write( _
ByVal image As Leadtools.RasterImage, _
ByVal data As Leadtools.Barcode.Deprecated.BarcodeData, _
ByVal codeColor As Leadtools.Barcode.Deprecated.BarcodeColor, _
ByVal flags As Leadtools.Barcode.Deprecated.BarcodeWriteFlags, _
ByVal code1d As Leadtools.Barcode.Deprecated.Barcode1d, _
ByVal codePdf As Leadtools.Barcode.Deprecated.BarcodeWritePdf, _
ByVal codeDatamatrix As Leadtools.Barcode.Deprecated.BarcodeWriteDatamatrix, _
ByVal codeQr As Leadtools.Barcode.Deprecated.BarcodeWriteQr, _
ByVal sizeRectangle As Leadtools.LeadRect _
)
public:
void Write(
Leadtools.RasterImage^ image,
Leadtools.Barcode.Deprecated.BarcodeData^ data,
Leadtools.Barcode.Deprecated.BarcodeColor^ codeColor,
Leadtools.Barcode.Deprecated.BarcodeWriteFlags flags,
Leadtools.Barcode.Deprecated.Barcode1d^ code1d,
Leadtools.Barcode.Deprecated.BarcodeWritePdf^ codePdf,
Leadtools.Barcode.Deprecated.BarcodeWriteDatamatrix^ codeDatamatrix,
Leadtools.Barcode.Deprecated.BarcodeWriteQr^ codeQr,
Leadtools.LeadRect sizeRectangle
)
image
RasterImage referencing the bitmap that holds the image data.
data
BarcodeData class that contains the barcode information to be written over the image.
codeColor
BarcodeColor class that contains the color information to be written over the image.
flags
Flags that indicate the method behavior. Values can be combined when appropriate, by using a bitwise OR ( ¦ ). Pass BarcodeWriteFlags.None to use the default values, based on the type of barcode that has been written.
code1d
Barcode1d class that contains the information related to linear barcodes.
codePdf
BarcodeWritePdf class that contains the information related to PDF417 and MicroPDF417 barcodes.
codeDatamatrix
BarcodeWriteDatamatrix class that contains the information related to Data Matrix barcodes.
codeQr
BarcodeWriteQr class that contains the information related to QR barcodes.
sizeRectangle
Ignored, pass.LeadRect.Empty.
This method supports all images currently supported by LEADTOOLS. 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 https://www.leadtools.com/sdk/barcode/1d-chart.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET