Skip to main content

Transparencies in MHP

No replies
rondador88
Offline
Joined: 2008-12-04

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.
{code}
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);
}
{code}
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

Message was edited by: rondador88