Barcode Professional for ASP.NET使用教程:透明旋转条码图像的创建

【Barcode Professional for ASP.NET下载】

需求

  • Neodynamic Barcode Professional for ASP.NET 2.0以上
  • Microsoft .NET Framework(任何版本)
  • Microsoft Visual Studio .NET(任何版本)

我们可以通过设置Barcode Professional里面BackColor属性进行透明处理。即是System.Drawing.Color.Transparent.

通过设置 Rotate 属性进行条码图像的旋转处理,可将其设置一定的值,即可旋转一定的角度。

下面将通过简单的示例,来展示这两项功能。

步骤:

  1. 打开.NET开发工具如,Visual Studio .NET.创建新的ASP.NET应用程序。
  2. 将Barcode Professional控件和DropDownList控件加入到WebForm 设计界面。
  3. 创建DIV包,并附上条码控件,将DIV背景色设置为浅绿色,并将Barcode Professional的BackColor 属性设置为透明。
  4. 选择DropDownList控件,添加指示旋转角度项,并将AutoPostBack属性设置为TRUE。
  5. 写上SelectedIndexChanged事件过程代码来设置旋转属性。

VB

Select Case DropDownList1.SelectedValue
Case "0"
BarcodeProfessional1.Rotate = Rotate.None
Case "90"
BarcodeProfessional1.Rotate = Rotate.Degree90
Case "180"
BarcodeProfessional1.Rotate = Rotate.Degree180
Case "270"
BarcodeProfessional1.Rotate = Rotate.Degree270
End Select

C#

switch(DropDownList1.SelectedValue)
{
case "0":
BarcodeProfessional1.Rotate = Rotate.None;
break;
case "90":
BarcodeProfessional1.Rotate = Rotate.Degree90;
break;
case "180":
BarcodeProfessional1.Rotate = Rotate.Degree180;
break;
case "270":
BarcodeProfessional1.Rotate = Rotate.Degree270;
break;
}

完成!创建ASP.NET Web应用程序运行。

Barcode
Barcode

本文转自jiangp


GRANT OF REDISTRIBUTION · Redistributable code. You cannot redistribute any part of THE PRODUCT, except the run-time assemblies (DLL files). · SDK, WPF and Windows Forms Versions of THE PRODUCT If you are a licensee of the “SDK Version” or “WPF Version” or “Windows Forms Version” of THE PRODUCT, then you are granted a license as a single individual to distribute THE PRODUCT royalty-free with an unlimited number of different compiled executables, provided they are developed solely by you. · ASP.NET Version of THE PRODUCT If you are a licensee of the “ASP.NET Version” of THE PRODUCT, then you are granted a license as a single individual to distribute THE PRODUCT royalty-free along with an unlimited number of different web-based solutions served from a SINGLE WEB SERVER (regardless of the number of CPUs in that server), provided they are developed solely by you. For distribution, hosting or transmittal by more than ONE WEB SERVER, you are required to upgrade to or purchase “Small Business” or “Corporate” licenses (which permit distribution to additional servers). Neodynamic does not charge for test servers. · Reporting Services Version of THE PRODUCT If you are a licensee of the “Reporting Services Version” of THE PRODUCT, you are granted a license as a single individual to distribute THE PRODUCT royalty-free along with an unlimited number of different Reporting Services solutions served from a SINGLE SQL SERVER REPORT SERVER (regardless of the number of CPUs in that server), provided they are developed solely by you. For distribution, hosting or transmittal by more than ONE SQL SERVER REPORT SERVER, you are required to upgrade to or purchase “Small Business” or “Corporate” licenses (which permit distribution to additional servers). Neodynamic does not charge for test servers.
GRANT OF REDISTRIBUTION · Redistributable code. You cannot redistribute any part of THE PRODUCT, except the run-time assemblies (DLL files). · SDK, WPF and Windows Forms Versions of THE PRODUCT If you are a licensee of the “SDK Version” or “WPF Version” or “Windows Forms Version” of THE PRODUCT, then you are granted a license as a single individual to distribute THE PRODUCT royalty-free with an unlimited number of different compiled executables, provided they are developed solely by you. · ASP.NET Version of THE PRODUCT If you are a licensee of the “ASP.NET Version” of THE PRODUCT, then you are granted a license as a single individual to distribute THE PRODUCT royalty-free along with an unlimited number of different web-based solutions served from a SINGLE WEB SERVER (regardless of the number of CPUs in that server), provided they are developed solely by you. For distribution, hosting or transmittal by more than ONE WEB SERVER, you are required to upgrade to or purchase “Small Business” or “Corporate” licenses (which permit distribution to additional servers). Neodynamic does not charge for test servers. · Reporting Services Version of THE PRODUCT If you are a licensee of the “Reporting Services Version” of THE PRODUCT, you are granted a license as a single individual to distribute THE PRODUCT royalty-free along with an unlimited number of different Reporting Services solutions served from a SINGLE SQL SERVER REPORT SERVER (regardless of the number of CPUs in that server), provided they are developed solely by you. For distribution, hosting or transmittal by more than ONE SQL SERVER REPORT SERVER, you are required to upgrade to or purchase “Small Business” or “Corporate” licenses (which permit distribution to additional servers). Neodynamic does not charge for test servers.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值