title: how to convert a Picture object into a Bitmap object, Android
body: <p>how can I convert a Picture into a Bitmap,  what I tried in the code is not working.  Any Ideas on how to do this?   I wanted to get the image in the Picture object and put that image into the ImageView named imageOne.</p>
  
  <pre><code>    showBitmap.setOnClickListener(new View.OnClickListener() {
          @Override
              public void onClick(View v) {
  
              Picture picture = wv.capturePicture();
  
             Bitmap bm = Bitmap.createBitmap(picture.getWidth(), 
                     picture.getHeight(), 
                     Bitmap.Config.RGB_565); 
     Canvas c = new Canvas(bm); 
     picture.draw(c);
  
     imageOne.setImageBitmap(bm);
  
              }
          });
  </code></pre>