Errors, bugs, questions - page 2063
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
There are two bmp objects with transparency channels. When they overlap each other, some uint-colours are generated. How can I calculate these values myself if I know the uint-colours of the superimposed pixels of each object?
Thank you! Another question. If, for example, five objects overlap at the same time, should the pairs (top/bottom) be made bottom-up or top-down?
Thank you!
Better to draw all (bmp) objects on the same canvas at once, it's a simpler approach in the long run.
It's better to draw all (bmp) objects on one canvas at once, it's a simpler approach in the long run.
That's why I'm asking. Above is another question.
Thank you! Another question. If, for example, five objects overlap each other, should the pairs (top/bottom) be drawn from bottom to top or from top to bottom?
I have to draw in layers, in order (zorder), from bottom to top, because I have to assume that I don't know which pixels of the five objects will intersect. As if on a real canvas.
After the mix, it looks like this
I draw in layers, according to order (like zorder), from the bottom to the top, because it's not immediately clear which pixels of the five objects will overlap. As if on a real canvas.
After mixing it up, you get something like this.
That's great! Are you using CCanvas or is it all your own solution? Which approach is better in the long run?
Great! Are you using a refined CCanvas or a completely your own solution? Which approach is better in the long run?
Had to write my own, but with significant code snippets borrowed from the standard library (primitive drawing algorithms, anti-aliasing, etc.). Cramming pieces of code into my concept of working with graphics turned out to be easier than wrapping my concept around the standard library.
I wouldn't mind using the standard library if it were "live", but so far it's not adapted to GUI in any way.
I had to write my own, but with significant borrowing of pieces of code from the standard library (primitive drawing algorithms, anti-aliasing, etc.). Cramming pieces of code into my concept of working with graphics turned out to be easier than wrapping my concept around the standard library.
I wouldn't mind using standard library, if it were "live", but so far it's not adapted to GUI in any way.
I see now, thank you.