CachedPainter

abstract class CachedPainter : Painter

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val intrinsicSize: Size

Functions

Link copied to clipboard
fun DrawScope.draw(size: Size, alpha: Float, colorFilter: ColorFilter?)
Link copied to clipboard
abstract fun DrawScope.onCache()
Link copied to clipboard
fun Painter.toImageBitmap(width: Int, height: Int, alpha: Float = 1.0f, colorFilter: ColorFilter? = null): ImageBitmap

Converts Painter to ImageBitmap with desired width, height, alpha and colorFilter