*/
public static boolean supportsTransparentImages(
UIXRenderingContext context
)
{
TrinidadAgent agent = context.getAgent();
// =-=ags Temporarily disabling the use of transparent images
// on ICE due to problems with tiling transparent images that
// are affecting UIXVE. This code should be removed once the
// underlying ICE bug is fixed (supposedly ICE 5.4.1)
if (TrinidadAgent.APPLICATION_ICE == agent.getAgentApplication())
return false;
//int encodings = ((Integer)agent.getCapability(
// AdfFacesAgent.CAP_IMAGE_ENCODINGS)).intValue();
// If the Agent suports transparent PNG, we are good to go...
//if ((encodings & AdfFacesAgent.IMAGE_ENCODINGS_CAP_TRANSPARENT_PNG) != 0)
// return true;
if (agent.getCapability(TrinidadAgent.CAP_TRANSPARENT_PNG_TYPE_IMAGE) == Boolean.TRUE)
return true;
// Otherwise, check GIF suport...
Configuration config = context.getConfiguration();
//return (((encodings & AdfFacesAgent.IMAGE_ENCODINGS_CAP_GIF) != 0) &&
// !Boolean.FALSE.equals(config.getProperty(_GIF_ENABLED)));
return ((agent.getCapability(TrinidadAgent.CAP_GIF_TYPE_IMAGE) == Boolean.TRUE) &&
!Boolean.FALSE.equals(config.getProperty(_GIF_ENABLED)));
}