ByteScout BarCode Generator SDK - C# - Add Barcode To Image - 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 Generator SDK – C# – Add Barcode To Image

  • Home
  • /
  • Articles
  • /
  • ByteScout BarCode Generator SDK – C# – Add Barcode To Image

How to add barcode to image in C# using ByteScout Barcode SDK

This tutorial will show how to add barcode to image in C#

This sample source code below will demonstrate you how to add barcode to image in 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. It can add barcode to image in C#.

Fast application programming interfaces of ByteScout Barcode SDK for C# plus the instruction and the code below will help you quickly learn how to add barcode to image. This C# sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Use of ByteScout Barcode SDK in C# is also explained in the documentation included along with the product.

Trial version of ByteScout Barcode SDK can be downloaded for free from our website. It also includes source code samples for C# and other programming languages.

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

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

Program.cs
      
using Bytescout.BarCode; namespace AddBarcodeToImage { class Program { static void Main() { // Create new barcode and register it. Barcode barcode = new Barcode(); barcode.RegistrationName = "demo"; barcode.RegistrationKey = "demo"; // Set symbology barcode.Symbology = SymbologyType.PDF417; // Set value barcode.Value = "Sample barcode"; // Place barcode at bottom-right corner of the image barcode.DrawToImage("wikipedia.png", -1, 400, 900, "result.png"); // Open output file in default image viewer System.Diagnostics.Process.Start("result.png"); } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Barcode SDK Home Page

Explore ByteScout Barcode SDK Documentation

Explore Samples

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

Explore ByteScout Barcode SDK Documentation

Explore Samples

Sign Up for ByteScout Barcode SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next