code: public static void saveBmp(Bitmap src, String fileName) throws ImageSaveException {
          try {
              BitmapUtil.save(src, fileName);
          } catch (IOException e) {
              throw new ImageSaveException(e);
          }
      }
docs: Saving image in bmp to file
  
  @param src      source image
  @param fileName destination file name
  @throws ImageSaveException if it is unable to save image