You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fun getPixelsRGBA(image: Bitmap): ByteArray {
// calculate how many bytes our image consists of
val bytes = image.byteCount
val buffer: ByteBuffer = ByteBuffer.allocate(bytes) // Create a new buffer
image.copyPixelsToBuffer(buffer) // Move the byte data to the buffer
return buffer.array() // Get the underlying array containing the
}
是哪里出了问题呢???感谢解答
The text was updated successfully, but these errors were encountered:
getInit()方法拿到了true,应该是初始化成功的。
getPixelsRGBA方法是closed issue里面的那个方法
是哪里出了问题呢???感谢解答
The text was updated successfully, but these errors were encountered: