对于Xamarin.Android便携式裁切图像的活动(Monodroid /单声道为Android) [英] Portable Crop Image Activity for Xamarin.Android (Monodroid / Mono for Android)

查看:193
本文介绍了对于Xamarin.Android便携式裁切图像的活动(Monodroid /单声道为Android)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找一个便携式作物形象的活动我的 Xamarin.Android 应用程序中使用。类似的东西这一个用Java编写的: https://github.com/lvillani/android-cropimage

I am looking for a portable crop image activity to use inside my Xamarin.Android application. Something similar to this one written in Java: https://github.com/lvillani/android-cropimage.

我觉得这是必要的那些不具有 com.android.camera.action.CROP 意图的行动实现的默认的Andr​​oid设备。

I think this is necessary for those Android devices which do not have the default com.android.camera.action.CROP intent action implemented.

try {
    // Call the standard crop action intent (the user device may not support it).
    Intent cropIntent = new Intent ("com.android.camera.action.CROP");
    ...
    Activity.StartActivityForResult(cropIntent, ...);
} catch (ActivityNotFoundException ex) {
    // Call a custom portable crop image activity here.
}

最后,在那里,我可以用它来实现presented行为,任何打开的库?

Finally, are there any open libraries which I could use to implement the presented behaviour?

推荐答案

是的,有一个(免责声明:笔者在这里)

Yes, there is one (disclaimer: author here)

cropimage-xamarin

这篇关于对于Xamarin.Android便携式裁切图像的活动(Monodroid /单声道为Android)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆