I am using cameraX
to analyze the image from the Camera.
I get the image in YUV_420_888 format and I managed to transform it to ARGB_8888
I need every pixel to be on 3 bytes with 8 bits of precision, values from 0...255
This is how I create my bitmap.
val bitmap = Bitmap.createBitmap(image.width, image.height, Bitmap.Config.ARGB_8888)
Is there a way how can I remove the Alpha channel from ARGB_8888?