Cropper
=======
The Cropper is an image cropping tool. It provides a way to set an image in XML and programmatically, and displays a resizable crop window on top of the image. Calling the method getCroppedImage() will then return the Bitmap marked by the crop window.
Developers can customize the following attributes (both via XML and programmatically):
- appearance of guidelines in the crop window
- whether the aspect ratio is fixed or not
- aspect ratio (if the aspect ratio is fixed)
- image resource
A public method to rotate the image by a specified number of degrees is also included. This can be used to provide the user with an option to fix the image orientation should Android miscalculate the intended orientation.
Supported on API Level 7 and above.
For more information, see the linked Github Wiki page.
https://github.com/edmodo/cropper/wiki
![ScreenShot](http://i.imgur.com/3FhsTgfl.jpg)
Installation
=======
**build.gradle**
repositories {
mavenCentral()
}
dependencies {
compile 'com.edmodo:cropper:1.0.1'
}
License
=======
Copyright 2013, Edmodo, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License.
You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Contributions
=======
We'd love for you to participate in the development of our project. Before we can accept your pull request, please sign our Individual Contributor License Agreement. It's a short form that covers our bases and makes sure you're eligible to contribute. Thank you!
http://goo.gl/gfj6Mb
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
cropper-master.zip (74个子文件)
cropper-master
cropper
res
values-v11
styles.xml 323B
values-v14
styles.xml 380B
values
colors.xml 119B
strings.xml 71B
attrs.xml 489B
styles.xml 679B
layout
crop_image_view.xml 626B
proguard-project.txt 781B
src
com
edmodo
cropper
CropImageView.java 19KB
cropwindow
edge
Edge.java 19KB
EdgePair.java 1KB
handle
VerticalHandleHelper.java 3KB
CenterHandleHelper.java 3KB
HandleHelper.java 6KB
HorizontalHandleHelper.java 3KB
CornerHandleHelper.java 2KB
Handle.java 2KB
CropOverlayView.java 24KB
util
AspectRatioUtil.java 4KB
ImageViewUtil.java 5KB
HandleUtil.java 12KB
PaintUtil.java 4KB
.project 810B
.classpath 450B
project.properties 584B
AndroidManifest.xml 175B
build.gradle 2KB
gradlew.bat 2KB
gradlew 5KB
CropperSample
res
values-v11
styles.xml 324B
menu
main.xml 254B
values-v14
styles.xml 381B
values-xlarge
dimens.xml 235B
values-normal
dimens.xml 235B
drawable-hdpi
ic_launcher.png 1KB
drawable-xhdpi
butterfly.jpg 177KB
ic_launcher.png 2KB
sidewayssky.png.jpg 904KB
.picasa.ini 102B
bkg.jpg 92KB
violetsky.png 3.16MB
.picasaoriginals
butterfly.jpg 204KB
sidewayssky.png 3.16MB
.picasa.ini 243B
values-small
dimens.xml 235B
drawable-xxhdpi
ic_launcher.png 3KB
values
strings.xml 852B
styles.xml 1KB
style.xml 64B
dimens.xml 212B
values-sw720dp-land
dimens.xml 269B
values-large
dimens.xml 235B
values-sw600dp
dimens.xml 196B
layout
activity_main.xml 8KB
proguard-project.txt 781B
ic_launcher-web.png 17KB
assets
Roboto-Thin.ttf 120KB
src
com
example
croppersample
MainActivity.java 7KB
.project 816B
.classpath 466B
project.properties 602B
AndroidManifest.xml 776B
build.gradle 547B
gradle
wrapper
gradle-wrapper.jar 49KB
gradle-wrapper.properties 230B
gradlew.bat 2KB
gradlew 5KB
gradle
wrapper
gradle-wrapper.jar 49KB
gradle-wrapper.properties 229B
.gitignore 364B
README.md 2KB
settings.gradle 41B
LICENSE.txt 11KB
build.gradle 359B
共 74 条
- 1
资源评论
- 柯基摇屁股2014-09-10很难得用的上,一般般 要9分 略多了
- wuzongan2019-05-06不错,可以安装
- hufz2014-11-15很难得用的上,一般般 要9分 略多了
sunsnow8
- 粉丝: 20
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功