Francesco Santagati
Results
1
comments of
Francesco Santagati
You can use `copyPixelsFromBuffer` using plane properties instead of width: ```kotlin fun Image.toBitmap(): Bitmap { val plane: Image.Plane = planes[0] val targetBitmap = Bitmap.createBitmap(plane.rowStride / plane.pixelStride, height, Bitmap.Config.ARGB_8888) targetBitmap.copyPixelsFromBuffer(plane.buffer) return...