How to create a white bitmap from an array of bytes?

1

I am working on android and I want to create a white bitmap from an array of bytes but I do not know how it is done, for the moment I have tried this

 byte[] bytes = new byte[10000];

 for (int i=0;i<bytes.length;i++){
       b[i]= 0 & 0xff;
 }

 Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length);
 this.imageView.setImageBitmap(bitmap);
    
asked by goku venz 08.07.2018 в 03:32
source

0 answers