机器人割草机无法超越256?割草机、机器人

2023-09-05 10:01:00 作者:moon

我使用的是Android的割草机,当我上面设置256图像大小,我得到以下错误:

  ERROR / JavaBinder(96):!!!失败粘结剂交易!
 

  intent.setData(_captureUri);
    intent.putExtra(outputX,512);
intent.putExtra(outputY,512);
intent.putExtra(aspectX,1);
intent.putExtra(aspectY,1);
intent.putExtra(规模化,真正的);
 

有谁知道另一个第三方图像栽跟头呢?

更新!! 肯定是有256个硬codeD值,请问这会影响我的裁剪:

http://$c$csearch.google.com/#cZwlSNS7aEw/packages/apps/Gallery3D/src/com/cooliris/media/CropImage.java&type=cs&l=624

解决方案

的种植者是Gallery3D应用程序的一部分,它不是一个公共APK。它可能或可能不可用,并且它可能会破坏在任何时间/转变。复制相关的类到您的项目并对其进行修改,以满足您的需求。

至于错误,数据可以与意图传递的最大大小约为1MB,如果你去了这一点,你会得到一个错误。查看源代码,我觉得它有一个选项,以作物的结果保存到一个开放的,这应该摆脱粘合剂的错误。

看看现在可以买到的13款机器人有多厉害

I'm using the android cropper, and when I set the image size above 256, I get the following error:

ERROR/JavaBinder(96): !!! FAILED BINDER TRANSACTION !!!

intent.setData( _captureUri );
    intent.putExtra( "outputX", 512 );
intent.putExtra( "outputY", 512 );
intent.putExtra( "aspectX", 1 );
intent.putExtra( "aspectY", 1 );
intent.putExtra( "scale", true );

Does anyone know of another 3rd party image cropper?

Update!! There is definitely a hardcoded value of 256, how does this affect my cropping?:

http://codesearch.google.com/#cZwlSNS7aEw/packages/apps/Gallery3D/src/com/cooliris/media/CropImage.java&type=cs&l=624

解决方案

The cropper is part of the Gallery3D app, it's not a public APK. It may or may not be available, and it may break/change at any time. Copy the relevant classes to your project and modify them to suit your needs.

As for the error, the maximum size of data you can transfer with intents is around 1Mb, if you go over this you will get an error. Look at the source, I think it has an option to save the crop result to a Uri, that should get rid of the binder error.