Skip to content

Commit

Permalink
Added color customization instructions in README
Browse files Browse the repository at this point in the history
  • Loading branch information
saifkhichi96 authored Feb 8, 2022
1 parent 8fdbbbe commit 8173d4a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,13 @@ try {
} catch(Exception e) {

}
```

No customization of the image is currently supported, including changing colors or padding. If you
require more customization, copy and modify the source for the encoder.
To customize the generated barcode image, use the `setBackgroundColor` and `setForegroundColor` functions of the
`BarcodeEncoder` class with a [`@ColorInt`](https://developer.android.com/reference/androidx/annotation/ColorInt)
value to update the background and foreground colors of the barcode respectively. By default, the barcode has a
white background and black foreground.

```

### Changing the orientation

Expand Down

0 comments on commit 8173d4a

Please sign in to comment.