在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):jdamcd/android-crop开源软件地址(OpenSource Url):https://github.com/jdamcd/android-crop开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):
An Android library project that provides a simple image cropping Deprecated! This project is not maintained. If it doesn't meet your needs as is, consider creating a fork or picking from these alternatives. Features
UsageFirst, declare <activity android:name="com.soundcloud.android.crop.CropImageActivity" /> CropCrop.of(inputUri, outputUri).asSquare().start(activity) Listen for the result of the crop (see example project if you want to do some error handling): @Override
protected void onActivityResult(int requestCode, int resultCode, Intent result) {
if (requestCode == Crop.REQUEST_CROP && resultCode == RESULT_OK) {
doSomethingWithCroppedImage(outputUri);
}
} Some attributes are provided to customise the crop screen. See the example project theme. PickThe library provides a utility method to start an image picker: Crop.pickImage(activity) DependencyThe AAR is published on Maven Central: compile 'com.soundcloud.android:android-crop:1.0.1@aar' How does it look?LicenseThis project is based on the AOSP camera image cropper via android-cropimage.
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论