Imaging

by minetsh

minetsh / Imaging

Android Image Edit Lib. Android 图片编辑库,微信图片编辑库

475 Stars 90 Forks Last release: Not found 38 Commits 1 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Imaging

一款图片编辑类库,功能类似微信中图片编辑功能,其主要目标用于聊天中快速编辑图片。

Summary

包含以下主要功能:

  • 缩放
  • 涂鸦
  • 文字
  • 马赛克
  • 裁剪
  • 旋转

Usage

implementation project(':image')

参考Sample示例

Sample

fun onChooseImages(uri: Uri, saveToPath: String) {
   startActivityForResult(
           Intent(this, IMGEditActivity::class.java)
                   .putExtra(IMGEditActivity.EXTRA_IMAGE_URI, image.uri)
                   .putExtra(IMGEditActivity.EXTRA_IMAGE_SAVE_PATH, saveToPath),
           REQ_IMAGE_EDIT
   )
}

override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { when (requestCode) { REQ_IMAGE_EDIT -> { if (resultCode == Activity.RESULT_OK) { onImageEditDone() } } } }

fun onImageEditDone() { // TODO do some thins }

Blog

About

我的微信

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.