You maybe interested: |
Barcode |
|
C#. Code 93 Generator Image Setting Tutorial
sample source code to generate linear Code 93 in png, jpeg, etc. image formats in C# .NET
Code 93, also known as ANSI/AIM Code 93, ANSI/AIM Code 93, Uniform Symbology Specification Code 93, provides a higher density and data security enhancement to Code 39.
C# Code 93 is a barcode generator in .NET projects which can easily generate Code 93 images in .NET platforms by setting the concerned image setting properties such as image formats, image resolution, image rotation and image color. Image color refers to the backcolor which stand for background color; the forecolor which represents the bar color; the text color.
OnBarcode C# Barcode Generator is designed to generate, create Code 93 and other linear & 2d barcodes in Microsoft Word.
Here are some more tutorials for C# Code 93 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 93 Image Format Setting
C# .NET Code 93 image format setting supports 5 image formats during generating Code 93 in C# programming:
Linear code93 = new Linear();
code93.Type = BarcodeType.CODE93;
code93.Data = "Onbarcode-Code93";
Generating Code 93 in PNG Format
PNG format is easy to generate Code 93 images in C#.NET Class & console application:
code93.Format = ImageFormat.Png;
code93.drawBarcode("c:\ code93.png");
Creating Code 93 in JPEG Format
You may set the JEPG format to generate Code 93 images in C# ASP.NET web projects:
code93.Format = ImageFormat.Jpeg;
code93.drawBarcode("c:\ code93.jpeg");
Drawing Code 93 in Gif Format
You may set the GIF format to generate Code 93 images in C#.NET Windows Forms programming:
code93.Format = ImageFormat.Gif;
code93.drawBarcode("c:\ code93.gif");
Creating Code 93 in Tiff Format
You may set the TIFF format to generate Code 93 images in SQL Server Reporting Service (SSRS) & Crystal Reports:
code93.Format = ImageFormat.Tiff;
code93.drawBarcode("c:\ code93.tiff");
Creating Code 93 in BMP Format
You may set the BMP format to generate Code 93 images in C# class.:
code93.Format = ImageFormat.Bmp;
code93.drawBarcode("c:\code93.bmp");
C#.NET Code 93 Image Rotation Setting
C# .NET Code 93 image rotation setting supports rotating the generated Code 93 image with 0, 90, 180, 270 degrees in C# projects:
Linear code93 = new Linear();
code93.Type = BarcodeType. CODE93;
code93.Data = "1234567";
code93.Rotate = Rotate.Rotate0;
C#.NET Code 93 Image Resolution Setting
C# .NET Code 93 image resolution setting allows setting the resolution for the created image in C# programming:
Linear code93 = new Linear();
code93.Type = BarcodeType. CODE93;
code93.Data = "1234567";
code93.Resolution = 96;
C#.NET Code 93 Image Color Setting
C# .NET Code 93 image color can be easily integrated with changing the text color, background color and bar color when generating Code 93 in C# class:
Linear code93 = new Linear();
code93.Type = BarcodeType.CODE93;
code93.Data = "1234567";
code93.BackColor = Color.Red;
code93.ForeColor = Color.Blue;
code93.TextColor = Color.Yellow;
C#.NET Code 93 Bar Alignment Setting
Besides image format, image resolution, image rotation and image color, Code 93 Generator for C# image setting properties can set bar alignment.
Linear code93 = new Linear();
code93.Type = BarcodeType.CODE93;
code93.Data = "123456";
code93.BarcodeWidth=200;
code93.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.
|