- 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 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
- Rectangle to be updated with the barcode size before writing the barcode over the image. If the user passes a Rectangle, then the method will calculate the size of the barcode and will update this parameter with the barcode size. Pass Rectangle.Empty to write the barcode over the image.
Visual Basic (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 Rectangle _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public void Write( RasterImage image, BarcodeData data, BarcodeColor codeColor, BarcodeWriteFlags flags, Barcode1d code1d, BarcodeWritePdf codePdf, BarcodeWriteDatamatrix codeDatamatrix, BarcodeWriteQr codeQr, Rectangle sizeRectangle ) |
C++/CLI | |
---|---|
public: void Write( RasterImage^ image, BarcodeData^ data, BarcodeColor^ codeColor, BarcodeWriteFlags flags, Barcode1d^ code1d, BarcodeWritePdf^ codePdf, BarcodeWriteDatamatrix^ codeDatamatrix, BarcodeWriteQr^ codeQr, Rectangle sizeRectangle ) |
Parameters
- 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 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
- Rectangle to be updated with the barcode size before writing the barcode over the image. If the user passes a Rectangle, then the method will calculate the size of the barcode and will update this parameter with the barcode size. Pass Rectangle.Empty to write the barcode over the image.
You must pass valid RasterImage to this method. If you did not pass a valid Rasterimage, the method wil threw 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 method 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.
Target Platforms: Microsoft .NET CF Framework 2.0, Windows Mobile 5 PocketPC, Windows Mobile 5 Smartphone, Windows Mobile 6