code: public static void drawTo(Bitmap src, Bitmap dest, int color) {
          clearBitmap(src, color);
          Canvas canvas = new Canvas(dest);
          canvas.drawBitmap(src, 0, 0, null);
          canvas.setBitmap(null);
      }
docs: Drawing bitmap over dest bitmap with clearing last one before drawing
  
  @param src   source bitmap
  @param dest  destination bitmap
  @param color clear color