1

我在我的应用程序中使用 Aviary SDK 作为照片编辑器,但它正在缩小我的图像。考虑我正在传递一个大小的图像,720*720但在编辑 Aviary 后给我一个大小的图像720*590

为什么 Aviary 返回按比例缩小的图像?

Intent newIntent = new Intent( ShowCapturedImage.this, FeatherActivity.class );
newIntent.setData(Uri.fromFile(pictureFile) );
startActivityForResult( newIntent, 1 );    
4

1 回答 1

2

终于得到了解决方案。它在 Aviary android 示例应用程序中提到

final DisplayMetrics metrics = new DisplayMetrics();
        getWindowManager().getDefaultDisplay().getMetrics( metrics );
        int max_size = Math.max( metrics.widthPixels, metrics.heightPixels );
        max_size = (int) ( (float) max_size / 1.2f );
        newIntent.putExtra( Constants.EXTRA_MAX_IMAGE_SIZE, max_size );
于 2014-11-08T14:27:00.527 回答