Skip to content

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

Notifications You must be signed in to change notification settings

minetsh/Imaging

Repository files navigation

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

我的微信

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages