Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
soulqw authored May 3, 2021
1 parent 8443324 commit 8a93810
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies {
## Usage:
#### basic usage

- Capture image in system camera
- Capture an image from system camera
```kotlin
CoCo.with(this@MainActivity)
.take(createSDCardFile())
Expand All @@ -43,7 +43,7 @@ image sample:

![image](https://cdn.nlark.com/yuque/0/2020/gif/1502571/1601093298091-b091b479-05d0-435e-a650-ba5e07850d72.gif)

- Pic image in system Gallery:
- Pick an image from system Gallery:

```kotlin
CoCo.with(this@MainActivity)
Expand All @@ -60,7 +60,7 @@ image sample:

![image](https://cdn.nlark.com/yuque/0/2020/gif/1502571/1601093668141-533ce509-9f4e-45fa-99c7-57a9a3d31335.gif)

- dispose the origin image:
- Dispose the origin image:
Generally speaking, we may need dispose the origin image such as compress and so on, so CoCo provide the operator of dispose, we can use it to dispose the image
```kotlin
//pick then dispose
Expand All @@ -76,7 +76,7 @@ Generally speaking, we may need dispose the origin image such as compress and so
})

```
We use the then method to switch the operator, it can combination the another operators
We use the "then" method to switch the operator, it can also combination the another operators

##### dispose operator:

Expand Down

0 comments on commit 8a93810

Please sign in to comment.