0 Replies Latest reply: Dec 3, 2008 4:23 AM by 843851 RSS

    Transparencies

    843851
      Hi,

      I am debugging my aplications uploading them directly to an ADB STB. This STB doesn´t support HMattes for assigning transparency to the diferents graphical components of my GUI. I have the book "Interactive TV Standards" an in order of which is said there, appart of HMattes it is possible to use transparencies using colors alpha chanel or calling to DVBComposite to define the transparencies rules of components that are put infront of this.
           public void paint (Graphics g){
                DVBGraphics dvbGraph=(DVBGraphics)g;
                try {
                     dvbGraph.setDVBComposite(DVBAlphaComposite.SrcOver);
                } catch (UnsupportedDrawingOperationException udoe) {
                     // TODO Auto-generated catch block
                     Logger.trace(this, "paint:UnsupporteDrawingOperation:"+udoe.getMessage());
                }
                super.paint(g);
           }
      is it something wrong with this?

      But I don´t manage to make work this the only thing that I can is to paint one component with transparency, but any component that is painted inside or infront this first component is painted in opaque mode.

      anyone could help me?
      thanks in advance
      greetings