Michael Paus
12/18/2020, 3:22 PMdrawBitmapMesh
. I can’t find this, or any equivalent method, in the Compose canvas, so that I could use that on desktop too. I have to render my images distorted, so that I can accommodate to different projections of my map-tiles.Nader Jawad
12/20/2020, 10:05 PMnativeCanvas
on the compose canvas instance which will return an android.graphics.Canvas for Android and the desktop canvas. You can then call the corresponding methods directly on it.Igor Demin
12/22/2020, 4:46 PMSkCanvas::drawVertices
and `SkShader::CreateBitmapShader`:
https://android.googlesource.com/platform/frameworks/base/+/3660789/core/jni/android/graphics/Canvas.cpp#728
So I think you can implement drawBitmapMesh
using pure Compose androidx.compose.ui.graphics.Canvas.drawVertices
and androidx.compose.ui.graphics.ImageShader
Michael Paus
12/22/2020, 5:38 PMMichael Paus
12/22/2020, 5:40 PM