Skip to content

Commit

Permalink
update RM.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunzxyong committed Oct 27, 2018
1 parent 28245d0 commit c1fbd20
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ android {
//return the compressed bitmap object
}
});
//or sync compress.
BitmapResult result = Tiny.getInstance().source("").asBitmap().withOptions(options).compressSync();
```

#### **AsFile**
Expand All @@ -75,6 +78,9 @@ android {
//return the compressed file path
}
});
//or sync compress.
FileResult result = Tiny.getInstance().source("").asFile().withOptions(options).compressSync();
```
#### **AsFileWithReturnBitmap**

Expand All @@ -86,6 +92,9 @@ android {
//return the compressed file path and bitmap object
}
});
//or sync compress.
FileWithBitmapResult result = Tiny.getInstance().source("").asFile().withOptions(options).compressWithReturnBitmapSync();
```

#### **BatchAsBitmap**
Expand All @@ -98,6 +107,9 @@ android {
//return the batch compressed bitmap object
}
});
//or sync compress.
BitmapBatchResult result = Tiny.getInstance().source("").batchAsBitmap().withOptions(options).batchCompressSync();
```
#### **BatchAsFile**

Expand All @@ -109,6 +121,9 @@ android {
//return the batch compressed file path
}
});
//or sync compress.
FileBatchResult result = Tiny.getInstance().source("").batchAsFile().withOptions(options).batchCompressSync();
```
#### **BatchAsFileWithReturnBitmap**

Expand All @@ -120,6 +135,9 @@ android {
//return the batch compressed file path and bitmap object
}
});
//or sync compress.
FileWithBitmapBatchResult result = Tiny.getInstance().source("").batchAsFile().withOptions(options).batchCompressWithReturnBitmapResult();
```

## **Version**
Expand Down

0 comments on commit c1fbd20

Please sign in to comment.