2D Barcode Writer for .NET
Ohjelma 2D Barcode Writer for .NET
2D Barcode Writer for .NET on laajennus, jonka avulla kehittäjät voivat tuottaa 3D-barcodeja niiden sovelluksissa. Tämä opas tarjoaa yleiskuvan käytettävissä olevista ominaisuuksista ja selittää, miten suorittaa yhteisiä tehtäviä käyttämällä koodin esimerkkejä.
Tukea 2D Barcode -tyypit
2D Barcode Writer for .NET tukee useita tyyppisiä 3D-barkoodeja, mukaan lukien:
- QR koodi
- Tietojen matriisi
- PDF417
Luo 2D-barkodeja
Voit luoda 2D-barkoodin, voit käyttää BarcodeGenerator
Tämä luokka tarjoaa useita ominaisuuksia, joiden avulla voit räätälöidä rivi-koodin, kuten CodeText
, EncodeTypes
ja 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 Barcode -sovellus
Voit räätälöidä 2D-riivakoodin ulkonäköä käyttämällä erilaisia ominaisuuksia, joita BarcodeGenerator
Esimerkiksi, voit muuttaa taustaväriä rivi koodi.
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);