ByteScout Premium Suite - VB.NET - Reduce cpu usage with barcode reader sdk - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout Premium Suite – VB.NET – Reduce cpu usage with barcode reader sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – VB.NET – Reduce cpu usage with barcode reader sdk

How to reduce cpu usage with barcode reader sdk in VB.NET with ByteScout Premium Suite

Learn to code in VB.NET to reduce cpu usage with barcode reader sdk with this step-by-step tutorial

Source code documentation samples give simple and easy method to install a needed feature into your application. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can be applied to reduce cpu usage with barcode reader sdk using VB.NET.

Want to save time? You will save a lot of time on writing and testing code as you may just take the VB.NET code from ByteScout Premium Suite for reduce cpu usage with barcode reader sdk below and use it in your application. Follow the instructions from scratch to work and copy the VB.NET code. Enjoy writing a code with ready-to-use sample codes in VB.NET.

If you want to try other source code samples then the free trial version of ByteScout Premium Suite is available for download from our website. Just try other source code samples for VB.NET.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.vb
      
Imports Bytescout.BarCodeReader Class Program Friend Shared Sub Main(args As String()) ' Barcode reader instance Dim reader As New Reader() reader.RegistrationName = "demo" reader.RegistrationKey = "demo" 'If you are reading barcodes from PDF Then you may reduce CPU And RAM load Using the following approach: '- instead of using All1D Or All2D barcode types, set it to the specific types you have in your documents Like PDF417 Or Code 39. You may set multiple barcode types if you need to '- reduce PDF rendering resolution to 200-150 dpi (depends on your document) '- set specific pages to read barcodes from. If you have barcodes on 2 first pages only then change the code to read barcodes from first 2 pages only. '- if barcodes are always located / printed in the same corner then also specify the area to read from instead of whole page for scanning ' Input filename Dim inputFileName As String = "barcode_multipage.pdf" ' Set specific barcode type to read reader.BarcodeTypesToFind.Code128 = True ' Reduce PDF rendering resolution reader.PDFRenderingResolution = 150 ' Set specific area to read from reader.CustomAreaLeft = 407 reader.CustomAreaTop = 494 reader.CustomAreaHeight = 605 reader.CustomAreaWidth = 999 ' Set specific page to read from along with filename reader.ReadFromPdfFilePage(inputFileName, 1, 1) ' Get all found barcodes Dim barcodes As FoundBarcode() = reader.FoundBarcodes ' Display found barcodes Console.WriteLine("Reading barcode(s) from PDF file...") For Each barcode As FoundBarcode In barcodes Console.WriteLine("Found Barcode - Type: '{0}', Value: '{1}'", barcode.Type, barcode.Value) Next ' Cleanup reader.Dispose() Console.WriteLine() Console.WriteLine("Press any key to continue.") Console.ReadKey() End Sub End Class

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next