当前位置:首页 » 编程语言 » c语言设置光标透明度
扩展阅读
webinf下怎么引入js 2023-08-31 21:54:13
堡垒机怎么打开web 2023-08-31 21:54:11

c语言设置光标透明度

发布时间: 2022-05-16 18:34:27

⑴ 怎样在c语言程序的运行中隐藏光标

要用寄存器
使用的时候代码直接调用no_text_cursor()函数就可以了~
楼主自己看着办吧

#include<stdio.h>
#include<dos.h>

void no_text_cursor(void);

int main()
{
no_text_cursor();
printf("abc");
getch();
return 0;
}

void no_text_cursor(void)
{
union REGS r;
r.h.ah=1;
r.h.ch=32;
int86(0x10,&r,&r);
}

⑵ C语言EGE效果

ege有用透明方式绘制图片的函数,翻翻帮助文档,你能找到它的,你可以用一个变量标识透明度然后循环递增。多次重复绘制。实现动态的从隐到显的动态效果。