Skip to content

Commit

Permalink
Updated readme;
Browse files Browse the repository at this point in the history
  • Loading branch information
sumimakito committed May 2, 2017
1 parent d1a3bc2 commit 1caff97
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ Example 1|Example 2|Example 3
------------ | ------------- | -------------
<img src="art/awesome-qr-1.png" width="400"> | <img src="art/awesome-qr-2.png" width="400"> | <img src="art/awesome-qr-3.png" width="400">


Rounded data dots|Binarized background
------------ | ------------- | -------------
<img src="art/awesome-qr-4.png" width="400"> | <img src="art/awesome-qr-5.png" width="400">

### Add dependency, 添加依赖项

Add below lines in build.gradle of your project:
Expand All @@ -31,7 +36,7 @@ allprojects {
Then, add below lines in build.gradle of your app module:
```
dependencies {
compile 'com.github.SumiMakito:AwesomeQRCode:1.0.0'
compile 'com.github.SumiMakito:AwesomeQRCode:1.0.2'
}
```

Expand Down Expand Up @@ -62,6 +67,9 @@ public static Bitmap create(

### Changelog, 更新日志

#### 1.0.2
Added an optional parameter which enables the data dots appear as filled circles.

#### 1.0.1
Now background images can be binarized as you like.

Expand Down
Binary file added art/awesome-qr-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added art/awesome-qr-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ public static Bitmap create(String contents, int size, int margin, float dataDot
return create(contents, size, margin, dataDotScale, Color.BLACK, Color.WHITE, backgroundImage, whiteMargin, true, binarize, DEFAULT_BINARIZING_THRESHOLD, false);
}

public static Bitmap create(String contents, int size, int margin, float dataDotScale, Bitmap backgroundImage,
boolean whiteMargin, boolean binarize, boolean roundedDataDots) throws IllegalArgumentException {
return create(contents, size, margin, dataDotScale, Color.BLACK, Color.WHITE, backgroundImage, whiteMargin, true, binarize, DEFAULT_BINARIZING_THRESHOLD, roundedDataDots);
}

public static Bitmap create(String contents, int size, int margin, float dataDotScale, Bitmap backgroundImage,
boolean whiteMargin, boolean binarize, int binarizeThreshold) throws IllegalArgumentException {
return create(contents, size, margin, dataDotScale, Color.BLACK, Color.WHITE, backgroundImage, whiteMargin, true, binarize, binarizeThreshold, false);
Expand Down

0 comments on commit 1caff97

Please sign in to comment.