当前位置:网站首页>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
边栏推荐
猜你喜欢

Jarvis OJ simple network management protocol

Learnopongl notes (I)

Jarvis OJ Flag

【刷题篇】有效的数独

Jarvis OJ shell流量分析

The first EMQ in China joined Amazon cloud technology's "startup acceleration - global partner network program"

深潜Kotlin协程(二十一):Flow 生命周期函数

采用药丸屏的iPhone14或引发中国消费者的热烈抢购

【性能测试】jmeter+Grafana+influxdb部署实战

为季前卡牌游戏 MotoGP Ignition Champions 做好准备!
随机推荐
Use byte stream to read Chinese from file to console display
ECU简介
Apple has abandoned navigationview and used navigationstack and navigationsplitview to implement swiftui navigation
Cs231n notes (bottom) - applicable to 0 Foundation
The two ways of domestic chip industry chain go hand in hand. ASML really panicked and increased cooperation on a large scale
Bs-xx-042 implementation of personnel management system based on SSM
Embedded UC (UNIX System Advanced Programming) -1
【剑指 Offer】62. 圆圈中最后剩下的数字
[729. My Schedule i]
【微信小程序】一文读懂小程序的生命周期和路由跳转
拷贝方式之DMA
Benji Banas membership pass holders' second quarter reward activities update list
Games101 notes (II)
Games101 notes (I)
【性能测试】jmeter+Grafana+influxdb部署实战
Use JDBC technology and MySQL database management system to realize the function of course management, including adding, modifying, querying and deleting course information.
How to uninstall MySQL cleanly
Application of threshold homomorphic encryption in privacy Computing: Interpretation
Is it safe to open futures accounts online? Will there be more liars online? Doesn't feel very reliable?
China Radio and television officially launched 5g services, and China Mobile quickly launched free services to retain users