Captures a view tree that contains a given View and returns the obtained Bitmap.
invoked when a screenshot of the view tree is ready