原創|使用教程|編輯:龔雪|2015-11-27 16:33:55.000|閱讀 519 次
概述:本文將通過簡單的示例來展示Barcode Professional的旋轉和透明顯示功能,附有VB和C#代碼可供參考。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
【Barcode Professional for ASP.NET下載】
需求
我們可以通過設置Barcode Professional里面BackColor屬性進行透明處理。即是System.Drawing.Color.Transparent.
通過設置 Rotate 屬性進行條碼圖像的旋轉處理,可將其設置一定的值,即可旋轉一定的角度。
下面將通過簡單的示例,來展示這兩項功能。
步驟:
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應用程序運行。
本文譯自
購買最新正版授權!""
慧都年終盛典火爆開啟,一年僅一次的最強促銷,破冰鉅惠不容錯過!!優惠詳情點擊查看>>
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn