Need help to create image to fill all the background chart

To add comments, please log in or register
Mrluck07
428
Mrluck07  
#property indicator_chart_window
#property strict

string filename = "\\Images\\alpha.bmp";



int start ()

{

ObjectCreate( 0,filename, OBJ_BITMAP_LABEL, 0, 0, 0 );
    ObjectSetString( 0, filename, OBJPROP_BMPFILE, filename );
ObjectSetInteger(0,filename,OBJPROP_XDISTANCE,100);
   ObjectSetInteger(0,filename,OBJPROP_YDISTANCE,100);
 ObjectSetInteger(0,filename,OBJPROP_BACK,1);


return (0);
}


Hi, i need help to fill all my chart with a image file, my goal is to use several images, and in certain moments change the background image,  the problem is that i can't make the image larger, and fit all the chart, i know it's possible because there is an indicator called chartwall, but it only works on windows, so what should i do to complete this task? thanks for any help

4

Mrluck07
428
Mrluck07  

If i use a larger image, it fits more, but how can i manage to make it expand and fill all the chart? thanks


4

kypa
1079
kypa  

Either use bigger images or find a C++ class that can manipulate images.

You can set size parameters but it can only cut down images.

Mrluck07
428
Mrluck07  
kypa:

Either use bigger images or find a C++ class that can manipulate images.

You can set size parameters but it can only cut down images.

So it's not possible built in, thanks for answer
Alain Verleyen
38646
Alain Verleyen  
https://www.mql5.com/en/forum/204273
Scaling Bitmap
Scaling Bitmap
  • 2017.06.15
  • www.mql5.com
How do you guys rescale the bitmap label objects in your graphical interfaces, if the display DPI settings differs from default...
Mrluck07
428
Mrluck07  
Alain Verleyen:
https://www.mql5.com/en/forum/204273
Too much complicated that way, i think i'll follow @kypa and use bigger images to fit the screen
To add comments, please log in or register