C#. QR Code Generator Image Setting Tutorial

sample source code to generate 2D QR Code in png, jpeg, etc. image formats in C# .NET


 

C# QR Code Introduction

QR Code, also known as Denso Barcode, QRCode, Quick Response Code, is a kind of 2D (two dimensional) barcode widely used today.

C# barcode generator supports generating three 2D barcode types(C# QR Code generator, C# PDF 417 generator and C# Data Matrix. C# QR Code generator is easy to install and use for generating QR Code in C# development. Various images setting 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) are available for your programming.

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

 

C#.NET QR Code Image Format Setting

C# .NET QR Code image format setting allows 5 image formats (TIFF, BMP, PNG, GIF and JPEG) in the QR Code generation procedure in C# programming.

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

QRCode qrcode = new QRCode();

qrcode.Data = "BARCODE-IMAGE";

qrcode.Format = ImageFormat.Png;

qrcode.drawBarcode("c:\QR Code.png");

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

QRCode qrcode = new QRCode();

qrcode.Data = "IMAGE-FORMAT";

qrcode.Format = ImageFormat.Jpeg;

qrcode.drawBarcode("c:\QR Code.jpeg");

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

QRCode qrcode = new QRCode();

qrcode.Data = "QRCODE-FORMAT";

qrcode.Format = ImageFormat.Gif;

qrcode.drawBarcode("c:\QR Code.gif");

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

QRCode qrcode = new QRCode();

qrcode.Data = "ONBARCODE-QRCODE";

qrcode.Format = ImageFormat.Tiff;

qrcode.drawBarcode("c:\QR Code.tiff");

Setting BMP format to output QR Code in C# class

QRCode qrcode = new QRCode();

qrcode.Data = ".NET-QRCODE";

qrcode.Format = ImageFormat.Bmp;

qrcode.drawBarcode("c:\QR Code.bmp");

 

C#.NET QR Code Image Rotation Setting

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

QRCode qrcode = new QRCode();

qrcode.Data = ".NET";

qrcode.Rotate = Rotate.Rotate90;

 

C#.NET QR Code Image Resolution Setting

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

QRCode qrcode = new QRCode();

qrcode.Data = "ONBARCODE";

qrcode.Resolution = 220;

 

C#.NET QR Code Image Color Setting

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

QRCode qrcode = new QRCode();

qrcode.Data = "QRCODE";

qrcode.BackColor = Color.White;

qrcode.ForeColor = Color.Black;

qrcode.TextColor = Color.Black;

 

C#.NET QR Code Bar Alignment Setting

C# .NET QR Code supports Bar Alignment setting property:

QRCode qrcode = new QRCode();

qrcode.Data = "45646";

qrcode.BarcodeWidth=260;

qrcode.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 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 .NET HTML5 Document Viewer 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.