解决方案 »

  1.   

              //不知道下面方法是不是你需要的,你自己可以试试
                // Save the image to a temp file and invoke the cropper
          
        {  byte[] data;//图片数据
                Uri tempUri = null;
                FileOutputStream tempStream = null;
                try {
                    File path = getFileStreamPath("crop-temp");
                    path.delete();
                    tempStream = openFileOutput("crop-temp", 0);
                    tempStream.write(data);
                    tempStream.close();
                    tempUri = Uri.fromFile(path);
                } catch (FileNotFoundException ex) {
                     setResult(Activity.RESULT_CANCELED);
                    finish();
                    return;
                } catch (IOException ex) {
                     setResult(Activity.RESULT_CANCELED)
                    finish();
                    return;
                } finally { 
                }            Bundle newExtras = new Bundle();
               
                Intent cropIntent = new Intent("com.android.camera.action.CROP");            cropIntent.setData(tempUri);
                cropIntent.putExtras(newExtras);            startActivityForResult(cropIntent, CROP_MSG);
               }
                
       @Override
        protected void onActivityResult(
                int requestCode, int resultCode, Intent data) {
            switch (requestCode) {
                case CROP_MSG: {
     
                    setResult(resultCode, data);
                    finish();                File path = getFileStreamPath("crop-temp");
                    //op
                    path.delete();                break;
                }
            }
        }
              
         
      

  2.   

    http://stackoverflow.com/questions/9388209/android-cropping-an-image-to-specific-sizeIntent intent = new Intent(Intent.ACTION_GET_CONTENT, null)
                .setType("image/*")
                .putExtra("crop", "true")
                .putExtra("aspectX", width)
                .putExtra("aspectY", height)
                .putExtra("outputX", width)
                .putExtra("outputY", height)
                .putExtra("scale", true)//黑边
                .putExtra("scaleUpIfNeeded", true)//黑边
                .putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(f))
                .putExtra("outputFormat", Bitmap.CompressFormat.JPEG.toString());
    大尺寸
    http://www.cnblogs.com/jun-it/articles/2881826.html#commentform 
      

  3.   

    真心有用啊  谢谢楼主   谢谢ccsosnfs