ByteScout BarCode Generator SDK - C# - Set Narrow Bar Width - ByteScout

ByteScout BarCode Generator SDK – C# – Set Narrow Bar Width

  • Home
  • /
  • Articles
  • /
  • ByteScout BarCode Generator SDK – C# – Set Narrow Bar Width

How to set narrow bar width in C# with ByteScout Barcode SDK

The tutorial below will demonstrate how to set narrow bar width in C#

The sample source codes on this page shows how to set narrow bar width in C#. ByteScout Barcode SDK can set narrow bar width. It can be used from C#. ByteScout Barcode SDK is the robost SDK that generates high quality barcode images and pdf. Can generate all popular types of barcodes from QR Code, Code 39, Code 128, UPC, GS1, GS-128, PDF417, Datamatrix to more exotic barcode types. Fully customizable fonts, colors, print sizes. Includes special functions to ensure output quality, and tools for adding barcodes to new or existing pdf files and images.

This code snippet below for ByteScout Barcode SDK works best when you need to quickly set narrow bar width in your C# application. Follow the instructions from the scratch to work and copy the C# code. This basic programming language sample code for C# will do the whole work for you to set narrow bar width.

Trial version of ByteScout Barcode SDK is available for free. Source code samples are included to help you with your C# app.

Try ByteScout Barcode SDK today: Get 60 Day Free Trial or sign up for Web API

Program.cs
      
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using Bytescout.BarCode; namespace NarrowBarWidth { class Program { static void Main(string[] args) { // Create new barcode Barcode barcode = new Barcode(); // Set symbology barcode.Symbology = SymbologyType.Codabar; // Set value barcode.Value = "123456"; // Set narrow bar width barcode.NarrowBarWidth = 10; // Save barcode to image barcode.SaveImage("result.png"); // Show image in default image viewer Process.Start("result.png"); } } }

Try ByteScout Barcode SDK today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout Barcode SDK page

Explore ByteScout Barcode SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next