View To Image
Utility class for converting views to images.
Functions
Link copied to clipboard
fun convert( view: View, @ColorInt backgroundColor: Int = Color.TRANSPARENT, backgroundCornerRadius: CornerRadius = CornerRadius(0f), trimBorders: Boolean = false, padding: Padding = Padding(0f), margin: Margin = Margin(0f), viewsToExclude: ArrayList<ExcludeView> = arrayListOf()): Bitmap
Content copied to clipboard
Converts a view to a bitmap image.