1 Star 0 Fork 0

Plan-B/我的仓库

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
小人原地行走1.0.cpp 932 Bytes
一键复制 编辑 原始数据 按行查看 历史
Plan-B 提交于 2019-06-13 13:39 . 小人原地行走
#include <graphics.h>
#include <conio.h>
int main()
{
initgraph(480, 300);
IMAGE img_human; // 定义 IMAGE 对象
loadimage(&img_human, "D:\\行走素材图.jpg");
putimage (0,0,&img_human);
getch();
closegraph();
return 0;
}
void putimage(
int dstX,
int dstY,
int dstWidth,
int dstHeight,
IMAGE * pSrcImg,
int scrX,
int scrY,
DWORD dwRop = SRCCOPY
);
#include <graphics.h>
#include <conio.h>
int main()
{
initgraph(300, 150);
IMAGE img_human; // 定义 IMAGE 对象
loadimage(&img_human, "D:\\行走素材图.jpg");
putimage (0,0,75,130,&img_human,0,0);
getch();
closegraph();
return 0;
}
#include <graphics.h>
#include <conio.h>
int main()
{
initgraph(300, 150);
IMAGE img_human; // 定义 IMAGE 对象
loadimage(&img_human, "D:\\行走素材图.jpg");
int i;
while (1)
{
for (i=0; i<4; i++)
{
putimage (0,0,75,130,&img_human,i*75,0);
Sleep(100);
}
}
getch();
closegraph();
return 0;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/songguanhao/laozis_warehouse.git
git@gitee.com:songguanhao/laozis_warehouse.git
songguanhao
laozis_warehouse
我的仓库
master

搜索帮助

Cb406eda 1850385 E526c682 1850385