2020-08-22から1日間の記事一覧
fun Bitmap.toByteArray(): ByteArray { val buffer = ByteBuffer.allocate(this.byteCount) this.copyPixelsToBuffer(buffer) return buffer.array() }
fun Bitmap.toByteArray(): ByteArray { val buffer = ByteBuffer.allocate(this.byteCount) this.copyPixelsToBuffer(buffer) return buffer.array() }