百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
U

uCrop

> 编程语言
开源

Android 图像剪接库

12.1K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Android 图像剪接库

uCrop - Android 图像剪接库

该项目旨在提供最终和灵活的图像裁剪经验。 在[雅兰提斯 (ZZURL0Z)制造

[我们如何创建 uCrop] (https://yalantis.com/blog/how-we-created-ucrop-our-own-image-cropping-library-for-android/) 请检查dribbble上的项目 (ZZURL2Z)

使用量

  • 关于工作执行,请查看项目样本*。

<a href='https://play.google.com/store/apps/details?id=com.yalantis.ucrop.sample&utm_source=global_co&utm_medium=prtnr&utm_content=Mar2515&utm_campaign=PartBadge&pcampaignid=MKT-AC-global-none-all-co-pr-py-PartBadges-Oct1515-1">

  1. 将图书馆列为地方图书馆项目。

(原始内容存档于2019-09-29) (英语). allprojects { repositories { maven { url "https://jitpack.io" } } }

ZZ1ZZ

  • 轻质一般溶液

(原始内容存档于2019-09-29). implementation 'com.github.yalantis:ucrop:2.2.11-native'

  • 获得原生代码的力量,以保存图像质量(+ 大约1.5 MB 到 apk 大小)
  1. 在您的 AndroidManifest.xml 中添加 UCrop Activity

ZZCODE3 乐团

  1. 为作物结果登记回调.

(原始内容存档于2019-09-26). java private ActivityResultLauncher<Intent> activityResultLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), result -> { if (result.getResultCode() == RESULT_OK) { final Uri resultUri = UCrop.getOutput(result.getData()); } else if (result.getResultCode() == UCrop.RESULT_ERROR) { final Throwable cropError = UCrop.getError(result.getData()); } });

  1. 利用构建器模式创建uCrop配置.

贾瓦 UCrop.of(源代码Uri,目的地) (乌里语) 与 SpectRatio( 16, 9) 连接 . with MaxResultSize(最大宽度, 最大高度) .start(文本,活动ResultLauncher);

Issues· 349 开放

查看全部 Issues在 GitHub 打开
  • #408

    在创建图片位图时发生崩溃 (x + width 必须 <= bitmap.width())

    bug更新于 2026年9月11日
  • #991

    在目标 SDK 为 36 时, UI 覆盖了 android Status Bar

    更新于 2026年6月16日
  • #1161

    推荐 3 个真正的网站 真正的网站 真正的网站 pg 真正的网站 爆炸性 RTP 最高达 98% 支持网络钱包

    更新于 2026年6月13日
  • #1140

    AttributeError: np.sctypes 在 NumPy 2.0 版本中已被删除

    更新于 2026年5月29日
  • #1139

    添加失真/鱼眼效果

    更新于 2026年5月29日
  • #1138

    将图像移动到垃圾箱不会导致页面刷新

    更新于 2026年5月29日
  • #1137

    仅增强图像的部分

    更新于 2026年5月28日
  • #1136

    安全发现 — 可能的 pull_request_target 模式

    更新于 2026年5月28日
  • #1135

    导出 fixOrientation

    更新于 2026年5月28日
  • #1133

    具有 %VAR% 格式的文件名会导致无声卡死

    更新于 2026年5月28日

> 标签

Javaandroidanimationcropimage

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月28日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言