使用Barcode Xpress创建二维码的步骤

本文具体描述了使用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条形码的基本步骤

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//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条码的基本步骤

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//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();

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值