Home : Barcodes : Add Barcodes to an AtalaImage in the Viewer
Q10292 - HOWTO: Add Barcodes to an AtalaImage in the Viewer

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()

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.

Powered By InstantKB.NET v1.3
Copyright © 2002, 2017. InstantASP Ltd. All Rights Reserved