- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
摘 要
点阵的显示和镶边处理在各行各业都有广泛的应用,在电视、电脑、手机、遥控器等的液晶显示屏上,都可以看见点阵的应用。点阵是为集中反映晶体结构的周期性而引入的一个概念,通过点阵可以表示一系列的结构,可以是符号、图像或者汉字等 本文讨论的是在中文Windows操作系统环境下,通过系统自带的矢量字体库取出对应字体的文字,将其表示为比特图的形式,进而转换为点阵的表示,并在屏幕上绘出点阵文字,以及在对应的点阵文字上进行镶边处理,生成对应字体的点阵字库。利用VISUAL C++及其MFC进行界面编程,通过消息事件实现所需的功能。其中主要的镶边算法为:对于一个汉字的点阵数组,按行列依次遍历每一个点,对每一个点判断周围的8个点是否有笔画存在,借此判断该点是否为边界点,如果该点上没有笔画存在则将该点显示为字的边,由此动态地实时地进行镶边处理。此算法中并没有考虑生成边界的美观性,介于点阵镶边的局限性及镶边算法的难度,本文中的点阵镶边并没有针对笔画进行边界区分。
本文中生成的字库是基于GB2312标准的,按照区位码表的存储方式,存储固定尺寸(如1616,24*24等)的点阵字体,并实现了指定区位码字符的读取显示功能。
点阵字体;字体转换;镶边算法;字库;C++;MFC
ABSTRACT
Dot matrix display and the edge treatment widely used in all walks of life, in television, computers, cell phones, remote control, LCD display, etc., can see the dot matrix of the application. Dot matrix is a concentrated reflection of the periodic crystal structure and the introduction of a concept lattice can be expressed through a series of structures, can be symbols, images or characters, etc..
This article discusses Windows operating system in the Chinese environment, through the system comes with the corresponding vector font library removed the text font, expressed as bit-map of its form, then converted to dot-matrix representation, and draw points on the screen Front text, and text in the corresponding dot matrix trim on handle, generate the corresponding character dot matrix font. Using VISUAL C + + and MFC to interface programming, by news events to achieve the required functionality. One of the major trim algorithm: For a Chinese character dot-matrix array, according to the ranks of traversing each point in turn, on every point around 8 points to judge whether the stroke exist, to determine whether the point of the boundary points, if the point is that there is no point strokes appear as characters in the side, thus dynamically in real time to trim treatment. This algorithm does not take into account the aesthetics of the border generated, between the limitations of dot matrix trim and the trim algorithm difficulty, t
文档评论(0)