Drawer
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun image(image: ImageBitmap, rect: Rect, alpha: Float = 1.0f, colorFilter: ColorFilter? = null, blendMode: BlendMode = BlendMode.SrcOver)
fun image(image: ImageBitmap, position: Offset, size: Size, alpha: Float = 1.0f, colorFilter: ColorFilter? = null, blendMode: BlendMode = BlendMode.SrcOver)
fun image(image: ImageBitmap, src: Rect, dst: Rect, alpha: Float = 1.0f, colorFilter: ColorFilter? = null, blendMode: BlendMode = BlendMode.SrcOver)
Link copied to clipboard
fun measureStrokeText(text: String, font: FontResource? = null, fontWeight: FontWeight = FontWeight.Normal, fontStyle: FontStyle = FontStyle.Normal, letterSpacing: Float = 0.015f, shadow: Shadow? = null, textDecoration: TextDecoration? = null, blendMode: BlendMode = DrawScope.DefaultBlendMode): StrokeTextGraph
Link copied to clipboard
fun measureText(text: String, font: FontResource? = null, fontWeight: FontWeight = FontWeight.Normal, fontStyle: FontStyle = FontStyle.Normal, letterSpacing: Float = 0.015f, shadow: Shadow? = null, textDecoration: TextDecoration? = null, blendMode: BlendMode = DrawScope.DefaultBlendMode): TextGraph
Link copied to clipboard
Link copied to clipboard
fun rect(brush: Brush, rect: Rect, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
fun rect(color: Color, rect: Rect, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
Link copied to clipboard
fun roundRect(brush: Brush, radius: Float, rect: Rect, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
fun roundRect(color: Color, radius: Float, rect: Rect, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
Link copied to clipboard
fun strokeText(content: StrokeTextGraph, position: Offset, size: Size, color: Color, strokeColor: Color, stroke: Stroke, textAlign: TextAlign = TextAlign.Start)
fun strokeText(content: StrokeTextGraph, position: Offset, size: Size, brush: Brush, strokeColor: Color, stroke: Stroke, textAlign: TextAlign = TextAlign.Start, alpha: Float = 1.0f)