This content has been marked as final. Show 5 replies
You can do this using the org.dvb.ui.DVBAlphaComposite class as analternative to using the HAVi APIs. If you get the graphics context that you're drawing into, and cast it to an org.dvb.ui.DVBGraphics object (every instance of java.awt.Graphics returned by an MHP implementation is a DVBGraphics object) you can set the alpha level this way.
Alternatively, in some scenarios the org.dvb.DVBColor class may help you, since that allows you to set alpha values for each color. One gotcha with both of these is that not all alpha values have to be supported - only fully opaque, 50% transparent and 100% transparent have to be supported, according ot the MHP spec.
Sory I can't be more help than that at the moment, but hopefully this will prove useful.
(and thank for the comments about www.mhp-interactive.org, by the way!)
I got confirmation from Philips that HMatte is not supported on the STB DSR 5600.
The Philips DSR5600 has a little MHP logo. According to http://www.mhp.org/products/index.html only those products that pass the MHP Test Suite may use the MHP logo.
Does this mean HMatte is not a mandatory part of the MHP specification?!?
Correct. HMatte is optional in MHP. Section G.7 says "Platforms are not required to implement the functionality of mattes in HAVi.Non- implementation should be implemented as specified by HAVi."
Can anyone give an example code to use HImageEffectMatte ... it will really be helpful in developing more applications. I tried searching but failed to find any sample code ...