我是靠谱客的博主 天真芹菜,最近开发中收集的这篇文章主要介绍c语言中文字模描点算法,点阵字模工具编程是怎么编的?,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

0x12,0x18,0x21,0x08,0x01,0x40,0x07,0x80,

0x01,0x00,0x01,0xF8,0x3E,0x00,0x00,0x00,

/* 以下是 '汉' 的 16点阵楷体_GB2312 字模,32 byte */

0x00,0x00,0x00,0x00,0x30,0x00,0x11,0xF0,

0x02,0x20,0x04,0x20,0x62,0x40,0x29,0x40,

0x10,0x80,0x11,0x40,0x22,0x60,0x64,0x38,

0x78,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,

/* 以下是 '字' 的 16点阵楷体_GB2312 字模,32 byte */

0x00,0x00,0x01,0x00,0x01,0x10,0x11,0xF8,

0x1E,0x10,0x20,0xC0,0x07,0xC0,0x00,0x80,

0x01,0x38,0x1F,0xC0,0x20,0x80,0x00,0x80,

0x00,0x80,0x00,0x80,0x01,0x80,0x00,0x00,

/* 以下是 '库' 的 16点阵楷体_GB2312 字模,32 byte */

0x00,0x00,0x00,0x80,0x00,0x80,0x01,0xF0,

0x0E,0x80,0x08,0xF0,0x0B,0x00,0x09,0x40,

0x0A,0x78,0x13,0xC0,0x10,0x7E,0x2F,0xC0,

0x20,0x40,0x40,0x40,0x00,0x40,0x00,0x40,

/* 以下是 ',' 的 16点阵楷体_GB2312 字模,32 byte */

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,

0x10,0x00,0x10,0x00,0x20,0x00,0x00,0x00,

/* 以下是 '可' 的 16点阵楷体_GB2312 字模,32 byte */

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,

0x7F,0x40,0x00,0x20,0x07,0x20,0x19,0x20,

0x12,0x20,0x0E,0x40,0x00,0x40,0x00,0x40,

0x00,0x40,0x00,0xC0,0x00,0x40,0x00,0x00,

/* 以下是 '脱' 的 16点阵楷体_GB2312 字模,32 byte */

0x00,0x00,0x00,0x00,0x00,0x08,0x3D,0x90,

0x24,0x80,0x24,0x70,0x25,0x90,0x25,0x20,

0x35,0xE0,0x24,0xA0,0x24,0xC0,0x45,0x42,

0x4E,0x22,0x88,0x3E,0x00,0x00,0x00,0x00,

/* 以下是 '离' 的 16点阵楷体_GB2312 字模,32 byte */

0x00,0x00,0x03,0x00,0x01,0x30,0x1F,0xC0,

0x00,0xA0,0x0F,0xA0,0x0A,0xA0,0x0F,0xE0,

0x09,0x00,0x03,0xF8,0x1E,0x88,0x17,0xC8,

0x14,0x88,0x10,0x70,0x10,0x10,0x00,0x00,

/* 以下是 '文' 的 16点阵楷体_GB2312 字模,32 byte */

0x00,0x00,0x02,0x00,0x01,0x80,0x00,0x00,

0x00,0x70,0x07,0x80,0x18,0x80,0x01,0x80,

0x05,0x00,0x03,0x00,0x03,0x00,0x04,0xC0,

0x38,0x70,0x00,0x3E,0x00,0x00,0x00,0x00,

/* 以下是 '件' 的 16点阵楷体_GB2312 字模,32 byte */

0x00,0x00,0x08,0x40,0x0C,0x40,0x08,0x40,

0x11,0x40,0x11,0xF0,0x32,0x40,0x50,0x44,

0x91,0xF8,0x12,0x40,0x10,0x40,0x10,0x40,

0x10,0x40,0x10,0x40,0x00,0x00,0x00,0x00,

/* 以下是 '的' 的 16点阵楷体_GB2312 字模,32 byte */

0x00,0x00,0x00,0x00,0x00,0x20,0x0C,0x20,

0x08,0x40,0x10,0x48,0x1E,0xFC,0x23,0x0C,

0x24,0x8C,0x3C,0x48,0x24,0x08,0x24,0x08,

0x3C,0x08,0x00,0x38,0x00,0x18,0x00,0x00,

/* 以下是 '支' 的 16点阵楷体_GB2312 字模,32 byte */

0x00,0x00,0x01,0x00,0x01,0x00,0x01,0x00,

0x01,0xE0,0x0F,0x00,0x01,0x00,0x01,0xC0,

0x0E,0x40,0x08,0x80,0x06,0x80,0x01,0x00,

0x02,0xC0,0x0C,0x78,0x30,0x1C,0x00,0x00,

/* 以下是 '持' 的 16点阵楷体_GB2312 字模,32 byte */

0x00,0x00,0x08,0x20,0x08,0x20,0x08,0x20,

0x08,0x70,0x3C,0x20,0x08,0x3E,0x0F,0xD0,

0x08,0x1C,0x3B,0xF0,0xC9,0x10,0x08,0x90,

0x08,0x10,0x18,0x10,0x00,0x30,0x00,0x00,

/* 以下是 '运' 的 16点阵楷体_GB2312 字模,32 byte */

0x00,0x00,0x00,0x00,0x00,0x60,0x11,0x80,

0x00,0x00,0x00,0x78,0x27,0x80,0x71,0x80,

0x21,0x20,0x22,0xF0,0x23,0x10,0x20,0x00,

0x5F,0x80,0x00,0xFC,0x00,0x00,0x00,0x00,

/* 以下是 '行' 的 16点阵楷体_GB2312 字模,32 byte */

0x00,0x00,0x00,0x00,0x06,0x00,0x0C,0x38,

0x10,0x40,0x24,0x00,0x04,0x1F,0x0B,0xF0,

0x18,0x10,0x28,0x10,0xC8,0x10,0x08,0x10,

0x08,0x10,0x08,0x70,0x00,0x20,0x00,0x00,

};

int main(void)

{

int i, j;

initgr(); /* BGI初始化 */

drawmat(yi12, 12, 100, 125, WHITE);

drawmat(er12, 12, 115, 125, WHITE);

drawmat(dian12, 12, 130, 125, WHITE);

drawmat(zhen12, 12, 145, 125, WHITE);

drawmat(song16, 16, 160, 123, YELLOW);

drawmat(ti16, 16, 180, 123, YELLOW);

drawmat(zi24, 24, 200, 119, CYAN);

drawmat(mo24, 24, 230, 117, GREEN);

drawmat(guan48, 48, 350, 110, RED);

drawmat(guan64, 64, 410, 100, YELLOW);

for(i = 0; i 

drawmat(matarray16k + i * 32, 16, 200 + i * 15, 200, WHITE);

drawmat(matarray16k + 8 * 32, 16, 200 + i * 15, 200, WHITE);

drawmat(matarray16k + 9 * 32, 16, 200 + (++i) * 15, 200, WHITE);

drawmat(matarray16k + 10 * 32, 16, 200 + (++i) * 15, 200, WHITE);

for(i = 18; i 

drawmat(matarray16k + (i - 3) * 32, 16, 200 + i * 15, 200, WHITE);

getch(); /* 暂停一下,看看前面绘图代码的运行结果 */

closegr(); /* 恢复TEXT屏幕模式 */

return 0;

}

怎么能知道一个汉字的点阵字模是多少啊�

最后

以上就是天真芹菜为你收集整理的c语言中文字模描点算法,点阵字模工具编程是怎么编的?的全部内容,希望文章能够帮你解决c语言中文字模描点算法,点阵字模工具编程是怎么编的?所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(59)

评论列表共有 0 条评论

立即
投稿
返回
顶部