title: Crop image in android
body: <p>I want to do cropping of image i found some pretty useful ones but somehow is like lacking of the darken the unselected areas so I wondering do anyone know how? or lead me to the right direction? The online tutorial i found shows that is will darken the selected area but when I use it, it won't. Please help me thanks alot and sorry for my bad command of english.</p>
  
  <p>Links to the tutorial I use.</p>
  
  <p><a href="http://mobile.tutsplus.com/tutorials/android/capture-and-crop-an-image-with-the-device-camera/" rel="noreferrer">Crop image tutorial 1</a></p>
  
  <p><a href="http://www.londatiga.net/featured-articles/how-to-select-and-crop-image-on-android/" rel="noreferrer">Crop Image tutorial 2</a></p>
  
  <p>I want it to be something like this.</p>
  
  <p><img src="https://i.stack.imgur.com/TXapR.png" alt="I want it be something like this"></p>
  
  <pre><code>editButton.setOnClickListener(new Button.OnClickListener(){
  
          @Override
          public void onClick(View v) {
              // TODO Auto-generated method stub
              Intent goEdit;
              goEdit = new Intent(PreviewActivity.this, CropImage.class);
              goEdit.putExtra("image-path", path);
              goEdit.putExtra("scale", true);
              goEdit.putExtra("fileName", nameFromPath);
              //finish();
              checkEdit = true;
              startActivityForResult(goEdit,0);
  
          }
  });
  </code></pre>
  
  <p><strong>EDIT</strong>
  I use this button listener to call into the cropImage file by calling to the class CropImage activity. This is a custom intent not the crop feature inside android but I think is the copy of it so that make it support for all versions but when I call into it the selected area isnt brighten and I donno where is the problem can anyone guide me? Thanks
  This is the library I'm using <a href="https://github.com/chemalarrea/CropImage/tree/master/src/com/droid4you/util/cropimage" rel="noreferrer">drioid4you crop image</a> </p>