Search

Atalasoft Knowledge Base

HOWTO: Add Barcodes to an AtalaImage in our ImageViewer WinForms Control

Administrator
DotImage

The BarcodeWriter class can be used to add barcodes to an AtalaImage. The following code is a simple example to add a barcode to an image in a viewer in the location of the rectangle selection:

C#

    BarcodeWriter writer = new BarcodeWriter(BarcodeStyle.Code39);
    writer.Render("00100",imageViewer1.Image.GetGraphics(), imageViewer1.Selection.Bounds);
    imageViewer1.Refresh();

VB.NET

 
    Dim writer As New BarcodeWriter(BarcodeStyle.Code39)
    writer.Render("00100", imageViewer1.Image.GetGraphics(), imageViewer1.Selection.Bounds)
    imageViewer1.Refresh()

Original Article:
Q10292 - HOWTO: Add Barcodes to an AtalaImage in our ImageViewer WinForms Control

Details
Last Modified: 6 Years Ago
Last Modified By: Administrator
Type: HOWTO
Rated 5 stars based on 1 vote
Article has been viewed 459 times.
Options
Also In This Category