Zebra打印机,中文转ZPL指令的.net实现,替换FNTHEX32.DLL,源代码实现

上传者: gongbenwen | 上传时间: 2023-01-19 11:08:25 | 文件大小: 327KB | 文件类型: ZIP
编写API的目的,Zebra官方提供的Unicode转化组件FNTHEX32.DLL,是一个非托管组件,托管环境下还需要再封装。 该组件直到现在还未找到对应的64位程序兼容组件,为了解决32位和64位的兼容问题,最后编写开发此API, 此API完全用.net开发,无需考虑兼容性问题,实现与FNTHEX32.DLL相同的效果。 此API改善了FNTHEX32.DLL中的字体问题,支持windows下所有字体。 程序处理思路: 先将文本用GDI+做绘图, 在内存中绘制出文本对应的图形, 然后将图形进行像素点取点处理, 取出每一个像素点,进行灰度处理, 按照0-255的灰度值,进行黑白判断, 此处取了一个中间一点的值,180,作为黑白分解点, 取出的黑白点,按照01组合,每八个像素点组合成一个字节,不满0填充,0代表白色像素点,1代表黑色像素点 将字节转化成对应的16进制字符,完成无压缩数据获取 在无压缩数据的基础上,按照ZPL指令中进行压缩,可以大量缩减字节长度,ZPL压缩参见ZPL协议

文件下载

资源详情

[{"title":"( 80 个子文件 327KB ) Zebra打印机,中文转ZPL指令的.net实现,替换FNTHEX32.DLL,源代码实现","children":[{"title":"UnicodeToZPLTest","children":[{"title":"Trace.Common.UnicodeToZPL","children":[{"title":"bin","children":[{"title":"Release","children":[{"title":"Trace.Common.UnicodeToZPL.XML <span style='color:#111;'> 4.55KB </span>","children":null,"spread":false},{"title":"Trace.Common.UnicodeToZPL_Locked","children":[{"title":"Trace.Common.UnicodeToZPL.dll <span style='color:#111;'> 209.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"Trace.Common.UnicodeToZPL.pdb <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"Trace.Common.UnicodeToZPL.dll <span style='color:#111;'> 11.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"Debug","children":[{"title":"Trace.Common.UnicodeToZPL.pdb <span style='color:#111;'> 27.50KB </span>","children":null,"spread":false},{"title":"Trace.Common.UnicodeToZPL.dll <span style='color:#111;'> 12.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"obj","children":[{"title":"Release","children":[{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.19KB </span>","children":null,"spread":false},{"title":"Trace.Common.UnicodeToZPL.pdb <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"Trace.Common.UnicodeToZPL.csproj.FileListAbsolute.txt <span style='color:#111;'> 565B </span>","children":null,"spread":false},{"title":"Trace.Common.UnicodeToZPL.dll <span style='color:#111;'> 11.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"Debug","children":[{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.19KB </span>","children":null,"spread":false},{"title":"Trace.Common.UnicodeToZPL.pdb <span style='color:#111;'> 27.50KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"Trace.Common.UnicodeToZPL.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"Trace.Common.ChineseToZPL.csproj.FileListAbsolute.txt <span style='color:#111;'> 444B </span>","children":null,"spread":false},{"title":"Trace.Common.UnicodeToZPL.dll <span style='color:#111;'> 12.00KB </span>","children":null,"spread":false},{"title":"Trace.Common.UnicodeToZPL.csprojResolveAssemblyReference.cache <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"ZebraCompress.cs <span style='color:#111;'> 7.85KB </span>","children":null,"spread":false},{"title":"CompressCode.cs <span style='color:#111;'> 908B </span>","children":null,"spread":false},{"title":"UnicodeToZPL.cs <span style='color:#111;'> 9.56KB </span>","children":null,"spread":false},{"title":"Trace.Common.UnicodeToZPL.csproj <span style='color:#111;'> 2.68KB </span>","children":null,"spread":false},{"title":"CompressCodeInfo.cs <span style='color:#111;'> 1002B </span>","children":null,"spread":false},{"title":"TextDirection.cs <span style='color:#111;'> 380B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"UnicodeToZPLTest.v12.suo <span style='color:#111;'> 71.50KB </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.sln <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.suo <span style='color:#111;'> 65.50KB </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest","children":[{"title":"bin","children":[{"title":"Release","children":[{"title":"Trace.Common.UnicodeToZPL.xml <span style='color:#111;'> 4.55KB </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.vshost.exe <span style='color:#111;'> 22.13KB </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.pdb <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"Trace.Common.UnicodeToZPL.pdb <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.exe <span style='color:#111;'> 14.00KB </span>","children":null,"spread":false},{"title":"Trace.Common.UnicodeToZPL.dll <span style='color:#111;'> 11.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"Debug","children":[{"title":"UnicodeToZPLTest.vshost.exe <span style='color:#111;'> 23.65KB </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.pdb <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"Trace.Common.ChineseToZPL.dll <span style='color:#111;'> 11.50KB </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"ChineseToZPLTest.exe <span style='color:#111;'> 12.50KB </span>","children":null,"spread":false},{"title":"Trace.Common.UnicodeToZPL.pdb <span style='color:#111;'> 27.50KB </span>","children":null,"spread":false},{"title":"ChineseToZPLTest.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"ChineseToZPLTest.pdb <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.exe <span style='color:#111;'> 15.00KB </span>","children":null,"spread":false},{"title":"Trace.Common.UnicodeToZPL.dll <span style='color:#111;'> 12.00KB </span>","children":null,"spread":false},{"title":"Trace.Common.ChineseToZPL.pdb <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 511B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Release","children":[{"title":"UnicodeToZPLTest.csproj.GenerateResource.Cache <span style='color:#111;'> 980B </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.TestForm.resources <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.pdb <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.71KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 865B </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"UnicodeToZPLTest.csprojResolveAssemblyReference.cache <span style='color:#111;'> 5.92KB </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.exe <span style='color:#111;'> 14.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"Debug","children":[{"title":"ChineseToZPLTest.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.csproj.GenerateResource.Cache <span style='color:#111;'> 980B </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.TestForm.resources <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"ChineseToZPLTest.csproj.GenerateResource.Cache <span style='color:#111;'> 980B </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.pdb <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.csproj.FileListAbsolute.txt <span style='color:#111;'> 3.25KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.70KB </span>","children":null,"spread":false},{"title":"ChineseToZPLTest.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"ChineseToZPLTest.exe <span style='color:#111;'> 12.50KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"ChineseToZPLTest.csprojResolveAssemblyReference.cache <span style='color:#111;'> 6.08KB </span>","children":null,"spread":false},{"title":"ChineseToZPLTest.pdb <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"UnicodeToZPLTest.csprojResolveAssemblyReference.cache <span style='color:#111;'> 8.18KB </span>","children":null,"spread":false},{"title":"UnicodeToZPLTest.exe <span style='color:#111;'> 15.00KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"TestForm.Designer.cs <span style='color:#111;'> 11.57KB </span>","children":null,"spread":false},{"title":"TestForm.cs <span style='color:#111;'> 5.11KB </span>","children":null,"spread":false},{"title":"TestForm.resx <span style='color:#111;'> 6.86KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false}],"spread":true},{"title":"UnicodeToZPLTest.csproj <span style='color:#111;'> 3.91KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明