title: Create timestamp for image captured by camera android return blank
body: <p>I try to create timestamp when user capture image from camera in android studio (java)</p>
  <p>this is my code</p>
  <pre><code>                Bitmap src = BitmapFactory.decodeFile(new File(imagePath).getAbsolutePath());
                  Matrix matrix = new Matrix(); // I'm not using this
                  matrix.postRotate(90);
                  Bitmap dest = Bitmap.createBitmap(src.getWidth(), src.getHeight(), Bitmap.Config.ARGB_8888);
  //                Bitmap dest = src.copy(src.getConfig(), true); // I try to use this too, but give me the same result
  
                  SimpleDateFormat sdf = new SimpleDateFormat(&quot;yyyy-MM-dd HH:mm:ss&quot;);
                  String dateTime = sdf.format(Calendar.getInstance().getTime()); // reading local time in the system
  
                  Canvas cs = new Canvas(dest);
                  Paint tPaint = new Paint();
                  tPaint.setColor(getResources().getColor(R.color.colorPrimary));
  
                  float scale = getResources().getDisplayMetrics().density;
                  tPaint.setTextSize(70 * scale);
  
                  tPaint.setStyle(Paint.Style.FILL);
                  cs.translate(10f,10f);
                  cs.drawBitmap(dest, 0f, 0f, null);
                  float height = tPaint.measureText(&quot;yY&quot;);
                  cs.drawText(dateTime, 100f, height+40f, tPaint);
                  try {
                      dest.compress(Bitmap.CompressFormat.JPEG, 80, new FileOutputStream(imagePath1)); // I save this in new image file, different with source image
                  } catch (FileNotFoundException e) {
                      e.printStackTrace();
                  }
  </code></pre>
  <p>The code above can write current date in top-left, but give blank (transparant) image. I expected the result is like original image, have timestamp, and in new image file.</p>
  <p>But image result is rotate 90° and blank(transparant) with timestamp</p>