title: overlay canvas image with another image android
body: <p>I have an image of a floor plan displayed on screen, My Question how do I overlay another image on that.</p>
  
  <p>see the image from another thread where I asked a how to <a href="https://stackoverflow.com/questions/27733276/render-2d-floor-plan-on-android-using-opengl?noredirect=1#comment43878766_27733276">here</a></p>
  
  <pre><code>/**
   * floor plan drawing.
   *
   * @param canvas the canvas on which the background will be drawn
   */
  @Override
  protected void onDraw(Canvas canvas) {
      super.onDraw(canvas);
      Bitmap temp = BitmapFactory.decodeResource(getResources(), R.drawable.floorplan);
      image= Bitmap.createScaledBitmap(temp, canvas.getWidth(), canvas.getHeight(), true);
      canvas.drawBitmap(image, 0, 0, null);
  
  }
  </code></pre>