title: merge two images (one image is transparent without face , second image is only face which coming from sdcard)
body: <p>I have a two image one image is containing body without face and one image contain with face only...</p>
  
  <p>now I want to merge this two images.... the first image which contain only body without face is in that the face is transparent.....</p>
  
  <p>So how can I detect that transparent area and place face over there in transparent area?</p>
  
  <p>I am combining two images with below code.. but it is not proper way to place face over transparent area</p>
  
  <p>My code is given below,</p>
  
  <pre><code>public Bitmap combineImages(Bitmap c, Bitmap s) {
      Bitmap cs = null;
  
      int width, height = 0;
  
      if (c.getWidth() &gt; s.getWidth()) {
          width = c.getWidth() + s.getWidth();
          height = c.getHeight();
      } else {
          width = s.getWidth() + s.getWidth();
          height = c.getHeight();
      }
  
      cs = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
  
      Canvas comboImage = new Canvas(cs);
  
      comboImage.drawBitmap(c, 0f, 0f, null);
      comboImage.drawBitmap(s, 0f, 0f, null);
  
      return cs;
  }
  </code></pre>