C#. QR Code Generator Image Setting Tutorial
Sample source code to generate QR Code in Tiff, png, jpeg, etc. image in C# .NET
In this C# how to page, you will learn how to encode and print QR Code 2d barcodes in various raster and vector image formats using C#.NET in your ASP.NET Core web app and Windows application.
- QR Code image with customized color settings, and special settings for transpancy backgound image
- Support QR Code in high resolution (dpi) raster image or vector image for printing
- High resolution barcode image for printing
How to create ISO standard QR Code images using C#
- Easy to customize QR Code module color and background color
- Quick to generate, print QR Code on transparency background in C# class, ASP.NET Core web page, and Windows forms
- Detailed C# sample code to encode QR Code image with various raster image file formats, like jpg, png, gif, bmp, etc
- QR Code creating for vector images (SVG & EPS) are also supported
- Quick to integrate into .NET 8, 7, 6, 5, .NET Core 3.1, 2.1 and .NET Framework 4.x, 3.x and 2.x project
QR Code, also known as Denso Barcode, QRCode, Quick Response Code, is a kind of 2D (two dimensional) barcode widely used today.
C# QR Code generator library supports creating standard QR Code, defined by ISO / IEC 18004.
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, jpg, svg and eps), image resolution, image rotation (0, 90, 180, 270) and image colors (background color, forecolor) are available for your programming.
OnBarcode C# Barcode Generator is designed to generate, create QR Code and other linear & 2d barcodes in .NET projects (.NET 8, 7, 6, .NET Core, and .NET Framework 4.x, 3.x)
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.