title: Merge two bitmap data
body: <p>For my application, I have create two bitmap as per my requirements.</p>
  
  <p>One for actual image that goes through some image processing and second logo bitmap that only display application logo on top left corner.</p>
  
  <p>Now at saving time I want to combine these bitmaps and want to generate single JPEG file as output.</p>
  
  <p>To accomplish this task I have write following code.</p>
  
  <pre><code>orignalbitmap = orignalbitmap.copy(Config.ARGB_8888, true);
  Canvas savedCanvas = new Canvas(orignalbitmap);
  savedCanvas.setBitmap(logoBitmap);
  savedCanvas.drawBitmap(orignalbitmap, 0, 0, transPaint);
  savedCanvas.drawBitmap(logoBitmap, 0, 0, transPaint);
  
  
  try {
      orignalbitmap.compress(CompressFormat.JPEG, 100, new FileOutputStream(new File("/mnt/sdcard/original.jpg")));
  } catch (FileNotFoundException e) {
      e.printStackTrace();
  }
  </code></pre>
  
  <p>But at present I only got my original image as output not attached with logo. I want image with logo also that data available in logo bitmap. So how to combine both bitmaps data that I can't understand so please provide some guidance in this.</p>