Drawer
Functions
Link copied to clipboard
Link copied to clipboard
fun circleImage(image: ImageBitmap, rect: Rect, alpha: Float = 1.0f, colorFilter: ColorFilter? = null, blendMode: BlendMode = BlendMode.SrcOver)
fun circleImage(image: ImageBitmap, position: Offset, size: Size, alpha: Float = 1.0f, colorFilter: ColorFilter? = null, blendMode: BlendMode = BlendMode.SrcOver)
Link copied to clipboard
fun drawAnimatedWebp(image: AnimatedWebp, frame: Int, dst: Rect, alpha: Float = 1.0f, colorFilter: ColorFilter? = null, blendMode: BlendMode = BlendMode.SrcOver)
fun drawAnimatedWebp(image: AnimatedWebp, frame: Int, position: Offset, size: Size, alpha: Float = 1.0f, colorFilter: ColorFilter? = null, blendMode: BlendMode = BlendMode.SrcOver)
Link copied to clipboard
Link copied to clipboard
fun measureText(textCache: TextDrawer.Cache, text: String, textHeight: Float, fontWeight: FontWeight = FontWeight.Light, fontStyle: FontStyle = FontStyle.Normal, letterSpacing: Float = 0.0625f, fontIndex: Int = 0): Paragraph
Link copied to clipboard
Link copied to clipboard
fun quadrilateral(brush: Brush, area: Array<Offset>, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
fun quadrilateral(color: Color, area: Array<Offset>, alpha: Float = 1.0f, style: DrawStyle = Fill, blendMode: BlendMode = BlendMode.SrcOver)
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 text(content: Paragraph, brush: Brush, shadow: Shadow? = null, decoration: TextDecoration? = null, drawStyle: DrawStyle? = null, blendMode: BlendMode = DrawScope.DefaultBlendMode)
fun text(content: Paragraph, color: Color, shadow: Shadow? = null, decoration: TextDecoration? = null, drawStyle: DrawStyle? = null, blendMode: BlendMode = DrawScope.DefaultBlendMode)
fun text(content: Paragraph, brush: Brush, position: Offset, shadow: Shadow? = null, decoration: TextDecoration? = null, drawStyle: DrawStyle? = null, blendMode: BlendMode = DrawScope.DefaultBlendMode)
fun text(content: Paragraph, color: Color, position: Offset, shadow: Shadow? = null, decoration: TextDecoration? = null, drawStyle: DrawStyle? = null, blendMode: BlendMode = DrawScope.DefaultBlendMode)