//capture the an image of the "from" view
Control from = transitionable.getControl(lastItem);
Rectangle size = from.getBounds();
Image imgFrom = new Image(from.getDisplay(), size.width, size.height);
GC gcfrom = new GC(from);
from.update();
gcfrom.copyArea(imgFrom, 0, 0);
gcfrom.dispose();
//capture an image of the "to" view
Control to = transitionable.getControl(currentItem);