admin 管理员组文章数量: 887021
2023年12月17日发(作者:冷弯薄壁z型钢)
private int TransparencyMode(byte[] p_FileByte, string p_Value) { m__TransparencyMode = (p_Value); return p_; } ///
/// [PCLInfo(TitleCommand1 = "MC")] private void MergeControl(byte[] p_FileBytes, string p_Value) { m__MergeControl = p_Value; } ///
#region ()命令 ///
[PCLInfo(TitleCommand1 = ")sW")] private int FontHeaderCommand(byte[] p_Command, string p_Value) { byte[] _Value = new byte[(p_Value)]; (p_Command, m_ReadIndex, _Value, 0, _); Hashtable _FontHeader = new Hashtable(); _("FontDescriptorSize", (ushort)(_Value[0] << 8 | _Value[1])); _("HeaderFormat", _Value[2]); _("FontType", _Value[3]); _("StyleMSB", _Value[4]); _("Reserved", _Value[5]); _("BaselinePosition", (short)(_Value[6] << 8 | _Value[7])); _("CellWidth", (short)(_Value[8] << 8 | _Value[9])); _("CellHeight", (short)(_Value[10] << 8 | _Value[11])); _("Orientation", _Value[12]); _("Spacing", _Value[13]); _("SymbolSet", (short)(_Value[14] << 8 | _Value[15])); _("PitchHMI", (short)(_Value[16] << 8 | _Value[17])); _("Height", (short)(_Value[18] << 8 | _Value[19])); _("x-Height", (short)(_Value[20] << 8 | _Value[21])); _("WidthType", _Value[22]); _("StyleLSB", _Value[23]); _("StrokeWeight", _Value[24]); _("TypefaceLSB", _Value[25]); _("TypefaceMSB", _Value[26]); _("SerifStyle", _Value[27]); _("Quality", _Value[28]); _("Placement", _Value[29]); _("UnderlinePosition", _Value[30]); _("UnderlineThickness", _Value[31]); _("TextHeight", (short)(_Value[32] << 8 | _Value[33])); _("TextWidth", (short)(_Value[34] << 8 | _Value[35])); _("FirstCode", (short)(_Value[36] << 8 | _Value[37])); _("LastCode", (short)(_Value[38] << 8 | _Value[39])); _("PitchExtended", _Value[40]); _("HeightExtended", _Value[41]); _("CapHeight", (short)(_Value[42] << 8 | _Value[43])); _("FontNumber", (short)(_Value[44] << 24 | _Value[45] << 16 | _Value[46] << 8 | _Value[47])); _("FontName", ing(_Value, 48, 15).Trim('/0')); switch ((ushort)_FontHeader["FontDescriptorSize"]) { case 68: //Resolution-Specified Bitmapped)
_("XResolution", (short)(_Value[64] << 8 | _Value[65])); _("YResolution", (short)(_Value[66] << 8 | _Value[67])); if (_ - 68 != 0) { byte[] _Copyight = new byte[_ - 68]; (_Value, 68, _Copyight, 0, _); _("Copyright", _Copyight); } break;
m__SelectFontID = (p_Value); } ///
[PCLInfo(TitleCommand1 = "(st")] private void TypefaceFamily(byte[] p_Command, string p_Value) { m__TypefaceFamily = (p_Value); m__SelectFontID = -1; if (!m_Buffer.m_nsKey(m__TypefaceFamily)) { string _FontName = "Arial"; switch (m__TypefaceFamily) { case 16602: _FontName = "Arial"; break; case 16901: _FontName = "Times New Roman"; break; default: break; } //FontStyle _Style =r; //switch(m__StrokeWeight) //{ // case 3: // _Style = ; // break; // case 0: // _Style = r; // break; //} ryKey _FontPath =bKey(@"Software/Microsoft/Windows/CurrentVersion/Explorer/ShellFolders"); string _Path = _ue("Fonts").ToString(); ryKey _Key =bKey(@"SOFTWARE/Microsoft/Windows NT/CurrentVersion/Fonts"); if (_Key == null) return; object _TrueTypeFont = _ue(_FontName + " (TrueType)"); if (_TrueTypeFont == null) return; m_Buffer.m_(m__TypefaceFamily, new ImageTTF(_Path + "//" + _TrueTypeFont)); } } ///
[PCLInfo(TitleCommand1 = "(sb")] private void StrokeWeight(byte[] p_Command, string p_Value) { m__StrokeWeight = (p_Value); } ///
/// 多边形类型 /// public string HPGL_PolygonModel = ""; ///
///
版权声明:本文标题:C#实现虚拟打印机HPColorLaserJet4500(3)PRN文件的显示 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/free/1702793742h431175.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论