Yes there is. You just like that:
Bitmap bmp=Bitmap.createBitmap(width,height,Config.ARGB_8888);
Canvas canvas=new Canvas(bmp);
canvas.drawColor(colorInt)
Inside drawColor (), you can also set the color using the methods of the Color class, such as Color.argb () or Color.rgb ()
Thus, you will have a bitmap image with the width, height and filling of the specified color.
: . . , , Canvas, .