欢迎访问 外汇EA下载与MT4/MT5自动交易资源 - 聚合外汇EA、黄金EA、量化交易工具与自动化交易实战内容。
登录 注册

cIntBMP - 用于创建 BMP 图像的库 - MetaTrader 5 的库

author emer | 630 人阅读 | 0 人评论 |

cIntBMP - a library for creation of BMP images - library for MetaTrader 5

cIntBMP - a library for creation of BMP images - library for MetaTrader 5

cIntBMP - a library for creation of BMP images - library for MetaTrader 5

cIntBMP - a library for creation of BMP images - library for MetaTrader 5

cIntBMP - a library for creation of BMP images - library for MetaTrader 5

此类设计用于创建 bmp 图像。

cIntBMP - a library for creation of BMP images - library for MetaTrader 5

DrawTriangle() 方法的示例

cIntBMP - a library for creation of BMP images - library for MetaTrader 5

DrawRectangle() 方法的示例

cIntBMP - a library for creation of BMP images - library for MetaTrader 5

DrawCircle() 方法的示例

cIntBMP - a library for creation of BMP images - library for MetaTrader 5

Fill() 方法的示例

cIntBMP.mqh 文件应位于 MQL5/Include 文件夹中。 cIntBMP 类使用的演示位于 eBMP.mq5 文件中。将此文件复制到 MQL5/Experts 文件夹,在 MetaEditor 中打开它,编译并附加到图表。

使用 cIntBMP 类:

1.包含类的文件:

#include 

2.删除cIntBMP类变量,例如“bmp”:

cIntBMP bmp;

3. 设置图像大小和背景颜色(使用 Create(...) 方法,见下文)。

4. 在图像上绘图。

5. 保存(使用 Save(...) 方法)。

6. 显示(使用 Show(...) 方法);

完成后:

1. 删除图形对象(使用 Hide(...) 方法)。

2. 删除文件(使用Delete(...) 方法)。


附件下载

📎 cintbmp.mqh (39.29 KB)

📎 ebmp.mq5 (48.02 KB)

Source: MQL5 #251

🔐
请登录后参与评论
注册满12小时后评论,即可解锁附件下载
立即登录