GUI_MEMDEV_BlendWinBk() does not work

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

  • GUI_MEMDEV_BlendWinBk() does not work

    Hi,
    i need to blur part of my display. I use function GUI_MEMDEV_BlendWinBk(), but nothing happens.
    I tried to implement the code sample Blurring and Blending but the function, GUI_MEMDEV_BlendWinBk(), return always 1 (Error)

    can anyone help me?
    Thanks a lot
    Andrea
  • Hi Adrian,
    This is my function

    results = GUI_MEMDEV_BlendWinBk(WM_GetClientWindow(hMyHandle), 1000, GUI_GREEN ,150);
    I also tried with the code in the sample Blurring and Blending:
    result = GUI_MEMDEV_BlurWinBk(WM_GetClientWindow(pMsg->hWin), Period, Depth);

    in both case the result is 1, and I do not see the desired effect.
    thanks
    Andrea
  • Hello Andrea,

    I see. Could you please check if there is enough memory assigned to emWin (GUIConf.c)? Animation functions create Memory Devices in order to process the animation. There is one Memory Device created for the given window and each of its child windows. Memory Device which are created for animation purposes always have a color depth of 32bpp.

    Best regards,
    Adrian