* <code>AbsolutePanel</code>.
*/
private Image getWidgetImage(WidgetInfo widget) {
Rectangle bounds = widget.getAbsoluteBounds();
if (bounds.width == 0 || bounds.height == 0) {
Dimension forcedSize = getForcedSize();
return new Image(null, forcedSize.width, forcedSize.height);
} else {
AbsolutePanelInfo absolutePanel = (AbsolutePanelInfo) widget.getRoot();
return UiUtils.getCroppedImage(absolutePanel.getImage(), bounds.getSwtRectangle());
}