[Solved] Make uniform colored Bitmap [closed]


in an inefficent way:

Bitmap bitmap = Bitmap.createBitmap(width, height, Config.ARGB_8888);
for (int i = 0; i < width; i++) {
    for (int j = 0; j < height; j++) {
        bitmap.setPixel(i, j, Color.argb(255, 255, 0, 0));
     }
 }

for a full red bitmap

1

solved Make uniform colored Bitmap [closed]