プロジェクト
GitHubで見る
jrvansuita/GaussianBlur
概要
🎩 あらゆる画像にガウスぼかしフィルターを簡単かつ高速に適用できるライブラリです。
デザイン・メディア計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル
Gaussian Blur
This is an Android project. Easy and simple library to apply gaussian blur filter on images. The library lets you apply a gaussian blur filter on any images very fast because the image will be scaled down before apply the filter. Doing it asynchronous or not.
Sample app
Please check the sample app and feel free to help with a pull request. It's located here.




Setup
Step #1. Add the JitPack repository to your build file:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Step #2. Add the dependency (See latest release).
dependencies {
compile 'com.github.jrvansuita:GaussianBlur:+'
}
Step #3. Add the below lines on app module build.gradle file.
defaultConfig {
...
renderscriptTargetApi 19
renderscriptSupportModeEnabled true
}
Implementation
//Synchronous blur
Bitmap blurredBitmap = GaussianBlur.with(context).render(R.mipmap.your_image);
imageView.setImageBitmap(blurredBitmap);
//Asynchronous blur
GaussianBlur.with(context).put(R.mipmap.your_image, imageView);
//Asynchronous with scaleDown and changing radius
GaussianBlur.with(context).size(300).radius(10).put(R.mipmap.your_image, imageView);
関連プロジェクトを探す
読み込み中…