Color inversion depending on the background

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Color inversion depending on the background

    Hi, everyone!

    I am using bundled with Keil version of emWin. Could somebody promt me how I implement the following behavior?

    I display a text on top of a layer (which is going to change) and I need the color text inverted but in a way that

    if the background of respective column of pixels where the text is about to be drawn is for instance blue the text will be white and vice versa.

    The illustration shows what I mean. I am not sure how to do it with emWin.

    Thanks in advance.
    Images
    • image.png

      4.43 kB, 290×133, viewed 591 times