优化
This commit is contained in:
1 parent
b1da2ec309
commit
c9ea5d2148
1 file changed
+1
-3
@@ -181,9 +181,7 @@ fun View.screenshot(picture: Picture) {
|
||||
fun View.screenshot(canvasRecorder: CanvasRecorder) {
|
||||
if (width > 0 && height > 0) {
|
||||
canvasRecorder.record(width, height) {
|
||||
withTranslation(-scrollX.toFloat(), -scrollY.toFloat()) {
|
||||
draw(this)
|
||||
}
|
||||
draw(this)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user