Canvas.drawbitmap - Software Rendering Doesn't Support Hardware Bitmaps
simple fun fun getCircleBitmap(bitmap: Bitmap, recycle: Boolean): Bitmap { val paint = Paint() paint.isAntiAlias = true paint.color = Color.WHITE pa
Solution 1:
so, my solution:
fun getCircleBitmapDrawable(bitmap: Bitmap): RoundedBitmapDrawable {
val round = RoundedBitmapDrawableFactory.create(context.resources, bitmap)
round.isCircular = true
round.setAntiAlias(true)
return round
}
Post a Comment for "Canvas.drawbitmap - Software Rendering Doesn't Support Hardware Bitmaps"