How to draw a filled gradient circle

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

  • How to draw a filled gradient circle

    What is the best way to draw a filled gradient circle. I am currently using bmp images, but I wonder whether it would be possible to use simple emWin operations.
    I have not found any information regarding my question in the documentation. But I imagine that maybe using transparent windows and the drawing of gradient rectangles it is possible to achieve the same result.

    So, Is it possible to draw a filled gradient via simple drawing operations or the best way is the use of an image?

    Thanks.
  • Hi,

    Unfortunately, this is not possible with emWin.

    So, the best way is to create an circular gradient with e.g. GIMP and either use the PNG/BMP and draw it on the screen or convert it into an emWin bitmap using the BitmpaConverter and display it this way.

    Regards,
    Sven
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.