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

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

ByteScout BarCode Generator SDK – C# – Add To Image

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");
		}
	}
}


  Click here to get your Free Trial version of the SDK

Tutorials:

prev
next