convert
Converts a view to a bitmap image.
Return
A bitmap of the view.
Parameters
View from which the image will be generated.
Background color to apply to the image.
Corner radius for the background.
Determines whether before applying margin and padding the borders of the view are cropped. To define the cropping area, use the background color of the view.
Padding between the view edges and the margin internal edges. Values must be zero or positive.
Margin between the padding external edges and the image edges. Values must be zero or positive.
If the view is a view group and has a children views, it determines the children's views to exclude when generating the image.
Throws
If the view is not already laid out.
If any child view of the view cannot be excluded from the image, or if the padding or margin values are invalid.