使用Barcode Xpress建立二維碼的步驟

來源:互聯網
上載者:User

本文具體描述了使用Barcode Xpress建立二維碼的步驟。

1 執行個體化你想建立條碼的writer類。

2 設定您想建立的值。

Property

Description

BarcodeValue

This property gets and sets the value of the barcode to be created.

BarcodeData

This property gets and sets the current barcode value as an array of bytes used only if non-ASCII text values are needed.

3 從執行個體化的writer類中調用建立方法(建立一個hDib)或著CreateBitmap方法(建立一個System.Drawing.Bitmap系統圖位元影像)。這些方法將返回一個預期的條碼形象。

Method

Description

Create

This method is the main method for creating barcodes.

CreateBitmap

This method creates bitmap barcodes.

c#——使用Accusoft.BarcodeXpress.Net產生PDF417條碼的基本步驟

1234567891011121314151617 //create and unlock the BarcodeXpress component
BarcodeXpress bcx =
new BarcodeXpress();
//  The SetSolutionName and SetSolutionKey methods must be called to distribute the runtime.
bcx.Licensing.SetSolutionName(“YourSolutionName”);
bcx.Licensing.SetSolutionKey(12345,12345,12345,12345);
//  The SetOEMLicenseKey method is required if Manually Reported Runtime Licensing is used.
bcx.Licensing.SetOEMLicenseKey(“1.0.AStringForOEMLicensing”);
   //Create the writer PDF417 class
WriterPDF417 pdf417 =
new WriterPDF417(bcx);
// Set the text value
pdf417.BarcodeValue =
"PDF417 Value";
//call Create and get resulting image
imageXView1.Image = Accusoft.ImagXpressSdk.ImageX.FromHdib(imagXpress1, pdf417.Create());
// dispose of the writer PDF417 and barcode component
pdf417.Dispose();
bcx.Dispose();

c# -使用Accusoft.BarcodeXpress.Net編寫DataMatrix Barcodes條碼的基本步驟

12345678910111213141516 //create and unlock the BarcodeXpress component
BarcodeXpress bcx =
new BarcodeXpress();
//  The SetSolutionName and SetSolutionKey methods must be called to distribute the runtime.
bcx.Licensing.SetSolutionName(“YourSolutionName”);
bcx.Licensing.SetSolutionKey(12345,12345,12345,12345);
//  The SetOEMLicenseKey method is required if Manually Reported Runtime Licensing is used.
bcx.Licensing.SetOEMLicenseKey(“1.0.AStringForOEMLicensing”);
//Create the writer DataMatrix class
WriterDataMatrix dataMatrix =
new WriterDataMatrix(bcx);
// Set the text value
dataMatrix.BarcodeValue =
"DataMatrix Value";
//call Create and get resulting image
imageXView1.Image = Accusoft.ImagXpressSdk.ImageX.FromHdib(imagXpress1, dataMatrix.Create());
// dispose of the writer DataMatrix and barcode component
dataMatrix.Dispose();
bcx.Dispose();

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.