ByteScout Barcode 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 Barcode Suite – VB.NET – Reduce cpu usage with barcode reader sdk

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

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

How to write a robust code in VB.NET to reduce cpu usage with barcode reader sdk with this step-by-step tutorial

Sample source code below will display you how to manage a complex task like reduce cpu usage with barcode reader sdk in VB.NET. What is ByteScout Barcode Suite? It is the bundle that privides 3 SDK products to generate barcodes (Barcode SDK), read barcodes (Barcode Reaer SDK) and read and write spreadsheets (Spreadsheet SDK). It can help you to reduce cpu usage with barcode reader sdk in your VB.NET application.

This prolific sample source code in VB.NET for ByteScout Barcode Suite contains various functions and other necessary options you should do calling the API to reduce cpu usage with barcode reader sdk. IF you want to implement the functionality, just copy and paste this code for VB.NET below into your code editor with your app, compile and run your application. Check VB.NET sample code samples to see if they respond to your needs and requirements for the project.

If you want to try other source code samples then the free trial version of ByteScout Barcode 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 Barcode Suite Home Page

Explore ByteScout Barcode Suite Documentation

Explore Samples

Sign Up for ByteScout Barcode 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 Barcode Suite Home Page

Explore ByteScout Barcode Suite Documentation

Explore Samples

Sign Up for ByteScout Barcode Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next