rounded rectangle

 

 


I want to use a rectangle with rounded corners inside MetaTrader.

When I export the image as PNG, everything looks fine — it has transparency (see image on the left). But when I save the exact same image as a BMP, the transparent background turns white.

I also tried the alpha channel method in Photoshop (created the channel, filled visible/transparent areas, and even exported directly as 32-bit BMP), but MetaTrader still does not display transparency.

Question:
What is the correct way to create a BMP file with smooth rounded corners and true transparency that MetaTrader can load with OBJ_BITMAP_LABEL ?

 
aminkiaeiiI want to use a rectangle with rounded corners inside MetaTrader. When I export the image as PNG, everything looks fine — it has transparency (see image on the left). But when I save the exact same image as a BMP, the transparent background turns white. I also tried the alpha channel method in Photoshop (created the channel, filled visible/transparent areas, and even exported directly as 32-bit BMP), but MetaTrader still does not display transparency. Question: What is the correct way to create a BMP file with smooth rounded corners and true transparency that MetaTrader can load with OBJ_BITMAP_LABEL ?
Not with Photoshop. Windows Bitmaps 32 bit alpha is not really common standard, but there are some tools on the web for free which can do this. The format you need is ARGB 32 bit bitmap. Search for it, you will find it. 
 

https://www.mql5.com/en/forum/474296

That thread is about MT4, I haven't checked if that method will work for MT5, but I think it should work

mql4 bmp sources - I want to use CBMP Button with different types of BMP files that works with MQ4, but all bmp formats are
mql4 bmp sources - I want to use CBMP Button with different types of BMP files that works with MQ4, but all bmp formats are
  • 2024.10.07
  • www.mql5.com
Bmp files with different sizes to use in mql4 coding. I want to use cbmpbutton but all the bmp formats are not working with it. As i see its working with a specific type og bmp files which i couldnt find on the net, eben with changing the file type from png to bmp
 
Vladislav Boyko #:

https://www.mql5.com/en/forum/474296

That thread is about MT4, I haven't checked if that method will work for MT5, but I think it should work

Found it again. PixelFormer. Free.