// Get the Icon from the Skin
UIXRenderingContext context = uix.getRenderingContext();
RenderingContext arc = RenderingContext.getCurrentInstance();
FacesContext fContext = context.getFacesContext();
Skin skin = context.getSkin();
Icon icon = skin.getIcon(name);
Object uri = icon.getImageURI(fContext, arc);
if (uri != null)
{
Integer width = icon.getImageWidth(arc);
Integer height = icon.getImageHeight(arc);
// =-=ags Perhaps we should consider caching ImageData
// instances in request/render scope, so that repeated
// calls to ui:imageIcon() during the same page render
// return the same ImageData object? We would also