use of org.apache.wicket.markup.html.image.resource.BufferedDynamicImageResource in project wicket by apache.
the class Home method getImage5Resource.
/**
* @return Gets shared image component
*/
public ResourceReference getImage5Resource() {
return new ResourceReference(Home.class, "image5") {
@Override
public IResource getResource() {
final BufferedDynamicImageResource resource = new BufferedDynamicImageResource();
final BufferedImage image = new BufferedImage(100, 100, BufferedImage.TYPE_INT_RGB);
drawCircle((Graphics2D) image.getGraphics());
resource.setImage(image);
return resource;
}
};
}
Aggregations