C#. Planet Generator Image Setting Tutorial

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


C# Planet Introduction

Planet, also known as USPS PLANET Barcode, USPS Confirm Service Barcode, is a linear barcode symbology adopted by United States Postal Service for tracking purpose when mail is processed on automated mail processing equipment.

C# Planet is a Planet barcode generation web control which supports easy code 39 generation on various platforms 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) and Bar Alignment. Besides, image width, bar width and image height such kinds of size setting properties are available for C# .NET Planet.

OnBarcode C# Barcode Generator is designed to generate, create Planet and other linear & 2d barcodes in Microsoft Word. Here are some more tutorials for C# Planet 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 Planet Image Format Setting

C# .NET Planet image format setting allows 5 image formats in the Planet generation procedure in C# programming. They are TIFF, BMP, PNG, GIF and JPEG.

Linear planet = new Linear();

planet.Type = BarcodeType.PLANET;

Planet.Data = "01234567890";

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

planet.Format = ImageFormat.Png;


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

planet.Format = ImageFormat.Jpeg;


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

planet.Format = ImageFormat.Gif;


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

planet.Format = ImageFormat.Tiff;


Setting BMP format to output Planet in C# .NET Suite programming

planet.Format = ImageFormat.Bmp;



C#.NET Planet Image Rotation Setting

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

Linear planet = new Linear();

planet.Type = BarcodeType.PLANET;

planet.Data = "98765432109";

planet.Rotate = Rotate.Rotate90;


C#.NET Planet Image Resolution Setting

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

Linear Planet = new Linear();

planet.Type = BarcodeType.PLANET;

planet.Data = "12212345678";

planet.Resolution = 200;


C#.NET Planet Image Color Setting

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

Linear planet = new Linear();

planet.Type = BarcodeType.PLANET;

planet.Data = "1234567654321";

planet.BackColor = Color.Red;

planet.ForeColor = Color.Black;

planet.TextColor = Color.White;


C#.NET Panet Bar Alignment Setting

Besides image format, image resolution, image rotation and image color, Planet Generator for C# image setting properties can set bar alignment.

Linear planet= new Linear();

planet.Type = BarcodeType.EAN8;

planet.Data = "12345612345";


planet.BarAlignment = AlignmentHori.Center;

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 imaging 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 comprehensive tutorials and how-tos for various linear, 2d barcode information, such as C# in ASP.NET, C# .NET, C# Barcode Encoding, C# Barcode Image, VB.NET in ASP.NET, VB.NET Winforms, VB.NET Barcode Encoding. 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.