}
return new RenderedImage(out.toByteArray(), "image/jpeg", new ChartRenderingInfo(new StandardEntityCollection()));
} catch (IOException ioex) {
log.error("Renderer.renderLegend: "+ioex.getMessage());
throw new ChartRenderingException(ioex.getMessage(), ioex);
}
}