当前位置:网站首页>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
边栏推荐
- dried food! Semi supervised pre training dialogue model space
- 如何安装mysql
- 阈值同态加密在隐私计算中的应用:解读
- Learnopongl notes (II) - Lighting
- Is it safe to open a securities account by mobile phone? Detailed steps of how to buy stocks
- Facing new challenges and becoming a better self -- attacking technology er
- Iphone14 with pill screen may trigger a rush for Chinese consumers
- 网站页面禁止复制内容 JS代码
- 二叉树相关OJ题
- WR | 西湖大学鞠峰组揭示微塑料污染对人工湿地菌群与脱氮功能的影响
猜你喜欢
Scratch colorful candied haws Electronic Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
如何安装mysql
PHP人才招聘系统开发 源代码 招聘网站源码二次开发
How to install MySQL
【 brosser le titre 】 chemise culturelle de l'usine d'oies
解决CMakeList find_package找不到Qt5,找不到ECM
composer安装报错:No composer.lock file present.
Learnopongl notes (II) - Lighting
Android privacy sandbox developer preview 3: privacy, security and personalized experience
Fleet tutorial 09 basic introduction to navigationrail (tutorial includes source code)
随机推荐
Yarn common commands
帮忙看看是什么问题可以吗?[ERROR] Could not execute SQL stateme
Jarvis OJ shell traffic analysis
Precision epidemic prevention has a "sharp weapon" | smart core helps digital sentinels escort the resumption of the city
sqlserver 做cdc 要对数据库性能有什么要求么
Data verification before and after JSON to map -- custom UDF
It is forbidden to copy content JS code on the website page
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
[team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
Jarvis OJ Flag
Timestamp strtotime the day before or after the date
BS-XX-042 基于SSM实现人事管理系统
Jarvis OJ webshell analysis
[729. My Schedule i]
Flet tutorial 12 stack overlapping to build a basic introduction to graphic and text mixing (tutorial includes source code)
DenseNet
C# TCP如何限制单个客户端的访问流量
腾讯音乐上线新产品“曲易买”,提供音乐商用版权授权
[wechat applet] read the life cycle and route jump of the applet
Jarvis OJ shell流量分析