2D Barkod Yazıcı .NET için
.NET için 2D Barcode Writer tanıtımı
.NET için 2D Barcode Writer, geliştiricilerin .net uygulamalarında 2d barcode oluşturmalarını sağlayan bir eklenti.Bu kılavuz mevcut özelliklerin genel bir bakış açısı sunar ve kod örneklerini kullanarak ortak görevleri nasıl gerçekleştirileceğini açıklıyor.
Desteklenen 2D Barkod Türleri
.NET için 2D Barcode Writer, şunları içerir:
- QR Kodu
- Matris Bilgileri
- PDF417 İndir
2D barkod oluşturma
Bir 2D çubuk kodu oluşturmak için, kullanabilirsiniz BarcodeGenerator
Sınıf: Bu sınıf, çubuk kodunu özelleştirmenize olanak tanıyan çeşitli özellikler sunar, örneğin CodeText
, EncodeTypes
ve Resolution
.
using Aspose.BarCode;
// Create a new instance of BarcodeGenerator
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.QR, "https://www.example.com");
// Set the resolution of the barcode
generator.Parameters۔Resolution = 300;
// Save the barcode to an image file
generator.Save("qr_code.png", BarCodeImageFormat.Png);
2D Barkod Kullanımı
2D çubuk kodunun görünümünü çeşitli özellikler kullanarak özelleştirebilirsiniz. BarcodeGenerator
Örneğin, çubuk kodunun arka plan rengini değiştirebilirsiniz.
using Aspose.BarCode;
// Create a new instance of BarcodeGenerator
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.QR, "https://www.example.com");
// Set the background color of the barcode
generator.Parameters.BackColor = Color.Blue;
// Set the auto-size mode
generator.Parameters.AutoSizeMode = AutoSizeMode.Nearest;
// Save the barcode to an image file
generator.Save("qr_code.png", BarCodeImageFormat.Png);