كاتب رموز باركود ثنائية الأبعاد لـ .NET

إدخال 2D Barcode Writer for .NET

The 2D Barcode Writer for .NET هو المكون الإضافي الذي يسمح للمطورين لإنشاء رموز الشريط في تطبيقاتهم.هذا الدليل يوفر نظرة عامة على الميزات المتاحة ويشرح كيفية تنفيذ المهام المشتركة باستخدام أمثلة الرمز.

أنواع الباركود 2D المدعومة

يدعم كتاب رمز شريط 2D لـ .NET عدة أنواع من الرموز الشريطية، بما في ذلك:

  • رمز QR
  • بيانات ماتريكس
  • PDF417

تصنيع الباركود 2D

لإنشاء رمز شريط 2D ، يمكنك استخدام BarcodeGenerator هذه الفئة توفر العديد من الخصائص التي تسمح لك بتخصيص رمز الشريط، مثل: CodeText, EncodeTypes، و 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

يمكنك تخصيص مظهر رمز الشريط 2D باستخدام الخصائص المختلفة المقدمة من قبل BarcodeGenerator على سبيل المثال، يمكنك تغيير لون الخلفية في رمز الشريط.

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);
 عربي