0

我想用一个小的独特图像填充每个矩形。有没有最好的方法来做到这一点?现在它们是使用 Paint 对象绘制的。

4

1 回答 1

0

I will answer my question for future reference then. Kotlin doesn't have the exact same solution, but you can draw bitmaps into rects similar to this way:

canvas.drawBitmap(image, Rect(0, 0, image!!.width, image!!.height), rect, null)
于 2019-03-27T19:53:45.653 回答