⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 alpha.c

📁 C大程序 需要解压
💻 C
字号:
bmp_picture alp;

void alpha_init(){
	BMP_Load("alpha_0.bmp", &alp);
}

void alpha_put(const char ch, const int x, const int y){
	int i, j;

	for(i = 14, j = 0; i >= 0; i--, j++)
		_fmemcpy(&video_buffer[(y + i) * SCREEN_WIDTH + x], &alp.buffer[j * 760 + (ch - 32) * 8], 8);
}

void alpha_put_string(const char *str, int x, int y){
	int len = strlen(str);
	int i;

	for (i = 0; i < len; i++)
		alpha_put(str[i], x + i * 8, y);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -