摘要
采用点阵液晶模块显示有效地增强了智能仪表的输入输出功能。显示图象可以用Windows画笔软件方便地编辑,但生成bmp文件中的点阵数据与模块显示所需的点阵数据却具有不同的结构。在分析、对比二者差别的基础上,给出了一种利用bmp文件直接提取可供液晶模块显示的点阵数据的方法:首先将画笔所编辑的图象顺时针旋转90°,使两种数据在字节的级别上取得一致;然后截取数据块并重新排序;经过适当的格式处理,最终生成可供仪表监控软件中汇编程序调用的文本式点阵数据表。
The function of input and output in the intelligent instruments is enhanced greatly with the use of dot matric LCD module display.The graph of the module can be edited conveniently with Windows Paintbrush,however the dotmatric data in the bmp file is different from the according one in the module for display.On base of the analysis to the relationship between the two data configuration,it is introduced a method to extract the dotmatric data information directly from bmp file,that is:first to turn graph 90°clockwise,let the two groups of data attained same at the grade of the bytes,then cut the data block and arranged anew,with the adaptable form processing,a dotmatric data table is obtained which provided for display subroutine call in the instrument monitor software
出处
《仪表技术与传感器》
CSCD
北大核心
2003年第8期48-50,共3页
Instrument Technique and Sensor