title: Android - Draw on top of an image
body: <pre><code>b2.setOnClickListener(new OnClickListener() {
              public void onClick(View v) {
                  setContentView(R.layout.new_main);
  
                  String editTextStr = text.getText().toString();
                  Toast msg = Toast.makeText(getBaseContext(),"/sdcard/Stored_Images/" + editTextStr + ".jpg", Toast.LENGTH_LONG);
                  msg.show();
  
                  Bitmap bmp = BitmapFactory.decodeFile("/sdcard/Stored_Images/" + editTextStr + ".jpg");
                  ImageView img = (ImageView) findViewById(R.id.ImageView01);
                  img.setImageBitmap(bmp);
              }
          });
  </code></pre>
  
  <p>The code above displays an image on the screen that is saved on the sd card. </p>
  
  <pre><code>Canvas c = holder.lockCanvas();
  c.drawARGB(255,0,0,0);
  onDraw(c);
  holder.unlockCanvasAndPost(c);
  </code></pre>
  
  <p>This code creates a canvas to draw on (black screen).</p>
  
  <p>I want to be able to combine the two to set/display an image as the canvas so that I can draw on it. So if i take a picture of someones face, I want to be able to display that image so that I can draw a mustache or something on it.</p>