当前位置:网站首页>EasyX second lesson
EasyX second lesson
2022-07-05 17:05:00 【Blue whale not blue 369】
Before using images , You need to define an object , Then load the image into the object to use
- We can use EasyX The classes provided to us :IMAGE, Such as :IMAGE img;
loadimage(IMAGE*pDstlmg,LPCTSTR plmgFile,int nWidth=0,int nHeight=0,bool bResize=false) Reading images from a file
- pDstlmg Save image IMAGE Object pointer &img;
- plmgFile Image file name
- nWidth The stretch width of the picture
- nHeight The stretch height of the picture
- bResize=false Whether to adjust IMAGE Size to fit the picture
putimage(int dstX,int dstY,IMAGE*pSrclmg,DWORD dwRop=SRCCOPY); Draw the specified image on the current device .
- dstX Draw the position of x coordinate
- dstY Draw the position of y coordinate
- pSrclmg To draw IMAGE Object pointer &img
- dwRop=SRCCOPY Ternary grating opcode
Relative paths ./ Indicates peer ,…/ Indicates the previous Directory
General usage :"./ + file name "
Absolute path :D:\EasyX practice \EasyX practice \1.jpg( Slash to write two , Or direct backslash ) There should be quotation marks if there are spaces
边栏推荐
- 兰空图床苹果快捷指令
- [first lecture on robot coordinate system]
- Games101 notes (III)
- High number | summary of calculation methods of volume of rotating body, double integral calculation of volume of rotating body
- easyNmon使用汇总
- Flet tutorial 12 stack overlapping to build a basic introduction to graphic and text mixing (tutorial includes source code)
- tf. sequence_ Mask function explanation case
- 【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
- 挖财股票开户安全吗?怎么开股票账户是安全?
- 二叉树相关OJ题
猜你喜欢
高数 | 旋转体体积计算方法汇总、二重积分计算旋转体体积
Benji Banas membership pass holders' second quarter reward activities update list
【刷题篇】有效的数独
NPM installation
Clear restore the scene 31 years ago, volcanic engine ultra clear repair beyond classic concert
【刷題篇】鹅廠文化衫問題
7.Scala类
Solution of vant tabbar blocking content
Android privacy sandbox developer preview 3: privacy, security and personalized experience
Scratch colorful candied haws Electronic Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
随机推荐
采用药丸屏的iPhone14或引发中国消费者的热烈抢购
Wsl2.0 installation
What is ROM
为季前卡牌游戏 MotoGP Ignition Champions 做好准备!
Is it safe for qiniu business school to open a stock account? Is it reliable?
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
外盘期货平台如何辨别正规安全?
【testlink】TestLink1.9.18常见问题解决方法
飞桨EasyDL实操范例:工业零件划痕自动识别
Games101 notes (III)
Cs231n notes (bottom) - applicable to 0 Foundation
[729. My Schedule i]
如何安装mysql
机器学习编译第2讲:张量程序抽象
Clear restore the scene 31 years ago, volcanic engine ultra clear repair beyond classic concert
Precision epidemic prevention has a "sharp weapon" | smart core helps digital sentinels escort the resumption of the city
拷贝方式之DMA
Jarvis OJ Webshell分析
[61dctf]fm
[Web attack and Defense] WAF detection technology map