This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

About SW OSD ON IPNC365

Genius 3400 points

Hi:

     The IPNC365 has the function of sw osd, and it only supply static library.

     When i turn on the osd and enable date and some text, We can find the osd text on Video and Jpeg picture. But the OSD background is black, it's not fit us to used.  We want to set transparence of Text background, not black, and I found some function in the head of OSD, like those:

   /*
      This API will change the OSD window Transperency Value and Transperancy Range
*/  int
SWOSD_winChangeTransperency();

   int SWOSD_setBmpTransperancy();

   int SWOSD_setPrivwinChangeTransperency();

    I don't understand how to using these function.  

  Can these function set transparence? and If not, what functon of those function?

  If we want to release OSD transparence of background, how to do if using SwOSD?

 Thanks a lot!

  • Hi,

        You can set transparancy by setting SWOSD_BmpWinPrm with proper value related to transparency and calling api SWOSD_setBmpWinPrm(SWOSD_Hndl *Hndl, int bmpWinId, SWOSD_BmpWinPrm *prm), where

    "Hndl"  is pointer to the SWOSD_Hndl structure which contains the details about OSD Bitmap Window, Main Video Window and Font Information details.

    "bmpWinId" is  window ID and

    "prm" is

    "Hndl" is pointer to the SWOSD_Hndl structure which contains the details about OSD Bitmap Window, Main Video Window and Font Information details.

    bmpWinId is window ID.

    bmpTransValue is transparency value.

    bmpTransRange is range of transparency. Library will allow +/- bmpTransRange from bmpTransValue to be used as transparency value.

     

    This API sets the OSD transparency range and value and sends the message.This API will be called from application.

     

    Note: Make sure to enable transparancy set SWOSD_BmpWinPrm->transperencyEnable = "1". In case it is not "1" you can call api SWOSD_setBmpWinEnable(SWOSD_Hndl *Hndl, int bmpWinId, int enable). Similarly to disable transparancy u can call same API with enable = 0.

    Hope you got the answer. If want some more detail please revert back to me.

     

    Regards,

    Rajiv