https://kotlinlang.org logo
#compose
Title
# compose
r

Rafs

11/11/2020, 4:34 PM
How do you rotate an
Image
in compose?
s

Se7eN

11/11/2020, 4:53 PM
Modifier.drawLayer(..., rotationX, rotationY, rotationZ, ...)
r

Rafs

11/11/2020, 5:01 PM
@Se7eN What i'm trying to do is to render all the composable into a
ComposeView
and subsequently call
view.drawToBitmap()
on it. The returned bitmap ignores the properties from
modifier.drawLayer(..)
s

Se7eN

11/12/2020, 9:04 AM
Probably because it creates another layer. Can you use a
Canvas
?
r

Rafs

11/12/2020, 9:34 AM
@Se7eN I ended up using a canvas.
s

Se7eN

11/12/2020, 10:24 AM
okay cool
4 Views