C#. Code 39 Generator Image Setting Tutorial

sample source code to generate linear Code 39 in png, jpeg, etc. image formats in C# .NET


 

C# Code 39 Introduction

Code 39, also known as Alpha39, Code 3 of 9, Code 3/9, Type 39, USS Code 39, or USD-3, is the first alpha-numeric linear barcode symbology used world-wide.

C# Code 39 is a Code 39 barcode generator control which supports easy code 39 generation on various platform with adjusting the images properties, such as image formats(tiff, bmp, png, gif and jpeg), image resolution, image rotation(0, 90, 180, 270) and image color(background color, forecolor and text color).

OnBarcode C# Barcode Generator is designed to generate, create Code 39 and other linear & 2d barcodes in Microsoft Word. Here are some more tutorials for C# Code 39 generation concerning data encoding and size setting.

 

C#.NET Code 39 Image Format Setting

C# .NET Code 39 image format setting allows 5 image formats in the Code 39 generation procedure in C# programming. They are TIFF, BMP, PNG, GIF and JPEG. You may adjust the Code 39 image to these formats.

Setting PNG image format to generate Code 39 images in C#.NET Class & console application

Linear code39 = new Linear();

code39.Type = BarcodeType.CODE39;

code39.Data = "BARCODE-IMAGE";

code39.Format = ImageFormat.Png;

code39.drawBarcode("c:\Code 39.png");

Setting JPEG format to create Code 39 images in C# ASP.NET web projects

Linear code39 = new Linear();

code39.Type = BarcodeType.CODE39;

code39.Data = "IMAGE-FORMAT";

code39.Format = ImageFormat.Jpeg;

code39.drawBarcode("c:\Code 39.jpeg");

Setting GIF format to print Code 39 images in C#.NET Winforms programming

Linear code39 = new Linear();

code39.Type = BarcodeType.CODE39;

code39.Data = "CODE39-FORMAT";

code39.Format = ImageFormat.Gif;

code39.drawBarcode("c:\Code 39.gif");

Setting TIFF format to draw Code 39 in SQL Server Reporting Service (SSRS) & Crystal Reports

Linear code 39 = new Linear();

code39.Type = BarcodeType.CODE39;

code39.Data = "ONBARCODE-CODE39";

code39.Format = ImageFormat.Tiff;

code39.drawBarcode("c:\Code 39.tiff");

Setting BMP format to output Code 39 in C# class

Linear code39 = new Linear();

code39.Type = BarcodeType.CODE39;

code39.Data = ".NET-CODE39";

code39.Format = ImageFormat.Bmp;

code39.drawBarcode("c:\Code 39.bmp");

 

C#.NET Code 39 Image Rotation Setting

C# .NET Code 39 image rotation setting supports rotating the generated Code 39 image with 0, 90, 180, 270 degrees in C# projects:

Linear code39 = new Linear();

code39.Type = BarcodeType.CODE39;

code39.Data = ".NET";

barcode.Rotate = Rotate.Rotate90;

 

C#.NET Code 39 Image Resolution Setting

C# .NET Code 39 image resolution setting allows setting the resolution for the created image in C# programming:

Linear Code39 = new Linear();

code 39.Type = BarcodeType.CODE39;

code39.Data = "ONBARCODE";

barcode.Resolution = 100;

 

C#.NET Code 39 Image Color Setting

C# .NET Code 39 image color can be easily integrated with changing the text color, background color and bar color when generating Code 39 in C# class:

Linearcode39 = new Linear();

code39.Type = BarcodeType.CODE39;

code39.Data = "CODE39";

barcode.BackColor = Color.Red;

barcode.ForeColor = Color.Black;

barcode.TextColor = Color.Black;

 

C#.NET Code 39 Bar Alignment Setting

Bar Alignment property are available for C#.NET Code 39 image setting:

Linear code39 = new Linear();

code39.Type = BarcodeType.CODE39;

code39.Data = "123456";

code39.BarcodeWidth=200;

code39.BarAlignment = AlignmentHori.Left;

When the set image width is larger than the minimum image width, Bar Alignment property can set the extra space on the left, center and right side.







OnBarcode is a market-leading provider of barcode generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides high quality tutorials and guides for various linear, 2d barcode information, such as C# Barcode, QR Code C#, QR Code VB.NET, QR Code ASP.NET, QR Code .NET, ASP.NET Barcode. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.