SeslRoundedLayerDrawable

A helper class for rounding the corners of a BitmapDrawable.

This class extends BitmapDrawable and overrides the draw method to clip the drawable with a rounded rectangle.

Example usage:

val bitmap = BitmapFactory.decodeResource(resources, R.drawable.my_image)
val roundedDrawable = SeslRoundedLayerDrawable(resources, bitmap)
imageView.setImageDrawable(roundedDrawable)

Parameters

res

The resources object.

bitmap

The bitmap to be drawn.

Constructors

Link copied to clipboard
constructor(res: Resources, bitmap: Bitmap)