Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

cIntBMP - Library for creating BMP images - Library for MetaTrader 5 - MT4/MT5 resources

author EAcpu | 5 reads | 0 comments |

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

This class is designed for creating bmp images.

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

Example of DrawTriangle() method

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

Example of DrawRectangle() method

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

Example of DrawCircle() method

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

Example of Fill() method

The cIntBMP.mqh file should be located in the MQL5/Include folder. A demo for the use of the cIntBMP class is located in the eBMP.mq5 file. Copy this file to the MQL5/Experts folder, open it in MetaEditor, compile and attach it to the chart.

Use the cIntBMP class:

1. Files containing classes:

 #include

2. Delete cIntBMP class variables, such as "bmp":

 cIntBMP bmp;

3. Set the image size and background color (using the Create(...) method, see below).

4. Draw on the image.

5. Save (using the Save(...) method).

6. Display (using Show(...) method);

After completion:

1. Delete the graphics object (using the Hide(...) method).

2. Delete the file (using the Delete(...) method).


Attachment download

📎 cintbmp.mqh (39.29 KB)

📎ebmp.mq5 (48.02 KB)

Source: MQL5 #251

Verification code Refresh