C#开发条形码源码分享
///
/// 绘制条形码 ///
private void captureScreen() { using (Graphics g = panel1.CreateGraphics()) { Size s = panel1.Size; mImage = new Bitmap(s.Width, s.Height, g); using (Graphics mg = Graphics.FromImage(mImage)) { IntPtr dc1 = g.GetHdc(); IntPtr dc2 = mg.GetHdc(); BitBlt(dc2, 0, 0, panel1.ClientRectangle.Width, panel1.ClientRectangle .Height, dc1, 0, 0, 13369376); g.ReleaseHdc(dc1); mg.ReleaseHdc(dc2); } } }
文件列表
打印条形码.rar
(预估有个28文件)
打印条形码
BarCode
bin
Debug
BarCode.pdb
28KB
AxInterop.BARCODELib.dll
7KB
BarCode.vshost.exe
14KB
Interop.BARCODELib.dll
8KB
BarCode.exe
29KB
BarCode.vshost.exe.manifest
490B
暂无评论