Hello,
I try a piece of transparent chart display(80x80).
I can not find the error. I think it is due to the RGB conversion. Can someone help me.
MQL4 Code here
I try a piece of transparent chart display(80x80).
I can not find the error. I think it is due to the RGB conversion. Can someone help me.
MQL4 Code here
PHP Code
int GetBlue(int clr)
{
int blue = MathFloor(clr / 65536);
return (blue);
}
int GetGreen(int clr)
{
int blue = MathFloor(clr / 65536);
int green = MathFloor((clr-(blue*65536)) / 256);
return (green);
}
int GetRed(int clr)
{
int blue = MathFloor(clr / 65536);
int green = MathFloor((clr-(blue*65536)) / 256);
int red = clr -(blue*65536) - (green*256);
return (red);
}