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.

How to generate, print barcode using .NET, Java sdk library control with example project source code free download:


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.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, Paint QR Bar Code in Java, Print QR Code in Software. 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.