当前位置:网站首页>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
边栏推荐
- File operation --i/o
- 【Web攻防】WAF检测技术图谱
- composer安装报错:No composer.lock file present.
- Application of threshold homomorphic encryption in privacy Computing: Interpretation
- Jarvis OJ Flag
- Bs-xx-042 implementation of personnel management system based on SSM
- Cs231n notes (bottom) - applicable to 0 Foundation
- [first lecture on robot coordinate system]
- Keras crash Guide
- How does the outer disk futures platform distinguish formal security?
猜你喜欢
随机推荐
Jarvis OJ Webshell分析
PHP人才招聘系统开发 源代码 招聘网站源码二次开发
Jarvis OJ 简单网管协议
WR | 西湖大学鞠峰组揭示微塑料污染对人工湿地菌群与脱氮功能的影响
Browser rendering principle and rearrangement and redrawing
国内首家 EMQ 加入亚马逊云科技「初创加速-全球合作伙伴网络计划」
Get ready for the pre-season card game MotoGP ignition champions!
国产芯片产业链两条路齐头并进,ASML真慌了而大举加大合作力度
Games101 notes (I)
齐宣王典故
Raspberry pie 4B installation pytorch1.11
什么是ROM
Application of threshold homomorphic encryption in privacy Computing: Interpretation
PHP 严格模式
【机器人坐标系第一讲】
Combined use of vant popup+ other components and pit avoidance Guide
Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
树莓派4b安装Pytorch1.11
Embedded-c Language-1
easyNmon使用汇总









![[brush questions] effective Sudoku](/img/5b/3064170bebd1ccbee68d6a85d23830.png)