Today we will explain the steps and algorithm of implementing rendering options and how to make it work in your application. ByteScout Barcode SDK was made to help with rendering options in VB.NET. ByteScout Barcode SDK is the robost library (Software Development Kit) that is designed for automatic generation of high-quality barcodes for printing, electronic documents and pdf. All popular barcode types are supported from Code 39 and Code 129 to QR Code, UPC, GS1, GS-128, Datamatrix, PDF417, Maxicode and many others. Provides support for full customization of fonts, colors, output and printing sizes. Special tools are included to verify output quality and printing quality. Can add generated barcode into new or existing documents, images and PDF.
VB.NET code snippet like this for ByteScout Barcode SDK works best when you need to quickly implement rendering options in your VB.NET application. In order to implement this functionality, you should copy and paste code below into your app using code editor. Then compile and run your application. VB.NET application implementation typically includes multiple stages of the software development so even if the functionality works please test it with your data and the production environment.
Trial version can be obtained from our website for free. It includes this and other source code samples for VB.NET.
Imports System.Drawing.Drawing2D Imports System.Drawing.Text Imports Bytescout.BarCode Module Module1 Sub Main() ' Create new barcode Dim barcode As New Barcode() ' Set symbology barcode.Symbology = SymbologyType.Codabar ' Set value barcode.Value = "123456" ' Set rendering hint barcode.RenderingHint = TextRenderingHint.ClearTypeGridFit ' Set smoothing mode barcode.SmoothingMode = SmoothingMode.AntiAlias ' Save barcode to image barcode.SaveImage("result.png") ' Show image in default image viewer Process.Start("result.png") End Sub End Module