Skip to content

Commit

Permalink
Update README.md to call .getInstance() on BlurKit
Browse files Browse the repository at this point in the history
  • Loading branch information
omerfarukyilmaz committed Dec 10, 2016
1 parent 8015420 commit e70c663
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,16 @@ You can blur a `View`, or a `Bitmap` directly.

```java
// View
BlurKit.blur(View src, int radius);
BlurKit.getInstance().blur(View src, int radius);

// Bitmap
BlurKit.blur(Bitmap src, int radius);
BlurKit.getInstance().blur(Bitmap src, int radius);
```

You can also __fastBlur__ a `View`. This optimizes the view blurring process by allocating a downsized bitmap and using a `Matrix` with the bitmaps `Canvas` to prescale the drawing of the view to the bitmap.

```java
BlurKit.fastBlur(View src, int radius, float downscaleFactor);
BlurKit.getInstance().fastBlur(View src, int radius, float downscaleFactor);
```

## To Do (incoming!)
Expand Down

0 comments on commit e70c663

Please sign in to comment.