Link Search Menu Expand Document

Composed Barcode - VB.NET

BarCode SDK sample in VB.NET demonstrating ‘Composed Barcode’

Imports System.Drawing
Imports Bytescout.BarCode

Module Module1

    Sub Main()

        Using barcode As New Barcode("demo", "demo")

            barcode.Symbology = SymbologyType.Code128

            barcode.Margins = New Margins(0, 0, 0, 0)
            barcode.DrawQuietZones = False

            barcode.Value = "123123"
            Dim image1 As Image = barcode.GetImage()

            barcode.Value = "123"
            Dim image2 As Image = barcode.GetImage()

            Using composer As New ImageComposer(10, 5, CompositionMode.ArrangeHorizontally)

                composer.AddImage(image2, 0, 0, 90)


                ' Show image in default image viewer

            End Using
        End Using
    End Sub

End Module

Download Source Code (.zip)

Return to the previous page Explore BarCode SDK