资源描述:
《点阵汉字放大参考程序》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、/********************************************************************//*模块名称:点阵汉字放大参考程序*//*文件名:点阵汉字放大参考程序.c*//*参考文档:无*//*作者:*//*版本:V1.0*//*日期:2007-04-16*//*注释:*//*日 期:2007-04-16*//*修改记录:无*//*说明:在TURBOC2.0环境下测试通过*//********************************************************************/#inclu
2、de#include/*zhanghf//汉字“啊”的16*16点阵数据(横置横排)*/charhzbuf16[32]={0x00,0x00,0x0E,0xFC,0xEA,0x08,0xAA,0x08,0xAA,0xE8,0xAA,0xA8,0xAC,0xA8,0xAA,0xA8,0xAA,0xA8,0xAA,0xA8,0xEA,0xE8,0xAA,0xA8,0x0C,0x08,0x08,0x08,0x08,0x28,0x08,0x10};/*zhanghf//汉字“啊”的24*24点阵数据(横置横排)*/charhzbuf24[72]={0
3、x00,0x00,0x00,0x00,0x88,0x00,0x00,0xFC,0x06,0x44,0xCB,0xFF,0x7E,0xC8,0x0C,0x64,0xC8,0x0C,0x64,0xC8,0x0C,0x64,0xD2,0x4C,0x64,0xD3,0xEC,0x64,0xE2,0x4C,0x64,0xD2,0x4C,0x64,0xD2,0x4C,0x64,0xCA,0x4C,0x64,0xCA,0x4C,0x7C,0xCB,0xCC,0x64,0xCA,0x4C,0x64,0xFA,0x0C,0x40,0xD0,0x0C,0x00,0xC0,0x0C,0x00,0
4、xC0,0x0C,0x00,0xC0,0x0C,0x00,0xC0,0x7C,0x00,0xC0,0x18,0x00,0x80,0x10};/*zhanghf//汉字“啊”的32*32点阵数据(横置横排)*/charhzbuf32[128]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0xC0,0x00,0x00,0x1F,0xE0,0x06,0x21,0x98,0xDF,0xFF,0x3F,0xD8,0xC0,0x18,0x31,0x99,0x80,0x18,0x31,0x99,0x80,0x18,0x31,0x9
5、9,0x00,0x18,0x31,0x99,0x11,0x98,0x31,0x9A,0x1F,0xD8,0x31,0x9A,0x19,0x98,0x31,0x9C,0x19,0x98,0x31,0x9A,0x19,0x98,0x31,0x9B,0x19,0x98,0x31,0x99,0x99,0x98,0x31,0x99,0x99,0x98,0x31,0x98,0xD9,0x98,0x31,0x98,0xD9,0x98,0x3F,0x98,0xD9,0x98,0x31,0x98,0xDF,0x98,0x31,0x98,0xD9,0x98,0x31,0x1F,0x99,0x1
6、8,0x20,0x19,0x90,0x18,0x00,0x19,0x00,0x18,0x00,0x18,0x00,0x18,0x00,0x18,0x00,0x18,0x00,0x18,0x00,0x18,0x00,0x18,0x00,0x18,0x00,0x18,0x03,0xF8,0x00,0x18,0x00,0x70,0x00,0x10,0x00,0x20};/*zhanghf//汉字放大处理后的点阵数据*/charfontbuf64[512];/**************************************************************
7、******//*函数名称:voidzoom_hz(char*hzbuf,char*fontbuf,intw,inth,*//*intxscal)*//*函数功能:点阵汉字放大程序*//*参 数:hzbuf:汉字原始点阵*//*fontbuf:汉字缩放处理后的点阵*//*w:汉字原始点阵的宽度*//*h:汉字原始点阵的高度*//*xscal:汉字缩放后的点阵的宽度*//*全局变量:无*//*返回值:无*//*调用前提:用户在使用点阵汉字库芯片时偶尔要用到大点阵汉字*//*或公司的汉字库芯片无法用户要求且用户对字型