|
|
C#. Code 39 Generator Image Setting Tutorial
sample source code to generate linear Code 39 in png, jpeg, etc. image formats in C# .NET
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.
How to generate, print barcode using .NET, Java sdk library control with example project source code free download:
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.
|