{"id":13643164,"url":"https://github.com/wasabeef/Blurry","last_synced_at":"2025-04-20T21:33:05.503Z","repository":{"id":35309622,"uuid":"39571075","full_name":"wasabeef/Blurry","owner":"wasabeef","description":"Blurry is an easy blur library for Android","archived":false,"fork":false,"pushed_at":"2023-04-27T15:54:45.000Z","size":2286,"stargazers_count":5634,"open_issues_count":85,"forks_count":605,"subscribers_count":101,"default_branch":"main","last_synced_at":"2025-04-10T12:40:16.865Z","etag":null,"topics":["android","android-library","blur","image-processing","java","kotlin"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wasabeef.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":"wasabeef","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2015-07-23T14:12:08.000Z","updated_at":"2025-04-08T11:01:00.000Z","dependencies_parsed_at":"2024-01-14T11:10:05.610Z","dependency_job_id":"3a5acdc2-3d29-4b1c-ab07-25d74484c291","html_url":"https://github.com/wasabeef/Blurry","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasabeef%2FBlurry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasabeef%2FBlurry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasabeef%2FBlurry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasabeef%2FBlurry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wasabeef","download_url":"https://codeload.github.com/wasabeef/Blurry/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249965566,"owners_count":21352926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-library","blur","image-processing","java","kotlin"],"created_at":"2024-08-02T01:01:42.967Z","updated_at":"2025-04-20T21:33:04.824Z","avatar_url":"https://github.com/wasabeef.png","language":"Java","readme":"[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Blurry-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/2192)\n[![License](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/jp.wasabeef/blurry/badge.svg)](https://search.maven.org/artifact/jp.wasabeef/blurry)\n\n`Blurry` is an easy blur library for `Android`.\n\n![logo](art/blurry.png)\n\nScreenshot\n---\n\n![Demo](art/blurry.gif)\n\nHow do I use it?\n---\n\n### Setup\n\n##### Dependencies\n```groovy\nrepositories {\n  mavenCentral()\n}\n\ndependencies {\n    compile 'jp.wasabeef:blurry:4.0.1'\n}\n```\n\n### Functions\n\n**Overlay**\n\nParent must be ViewGroup\n\n```kotlin\nBlurry.with(context).radius(25).sampling(2).onto(rootView)\n```\n\n**Into**  \n```kotlin\n// from View\nBlurry.with(context).capture(view).into(imageView)\n```\n\n```kotlin\n// from Bitmap \nBlurry.with(context).from(bitmap).into(imageView)\n```\n\n**Blur Options**\n\n- Radius\n- Down Sampling\n- Color Filter\n- Asynchronous Support\n- Animation (Overlay Only)\n\n```java\nBlurry.with(context)\n  .radius(10)\n  .sampling(8)\n  .color(Color.argb(66, 255, 255, 0))\n  .async()\n  .animate(500)\n  .onto(rootView);\n```\n\n**Get a bitmap directly**\n```kotlin\n// Sync\nval bitmap = Blurry.with(this)\n  .radius(10)\n  .sampling(8)\n  .capture(findViewById(R.id.right_bottom)).get()\nimageView.setImageDrawable(BitmapDrawable(resources, bitmap))\n\n// Async\nBlurry.with(this)\n  .radius(25)\n  .sampling(4)\n  .color(Color.argb(66, 255, 255, 0))\n  .capture(findViewById(R.id.left_bottom))\n  .getAsync {\n    imageView.setImageDrawable(BitmapDrawable(resources, it))\n  }\n```\n\nRequirements\n--------------\nAndroid 5.+ (API 21)\n\nDeveloped By\n-------\nDaichi Furiya (Wasabeef) - \u003cdadadada.chop@gmail.com\u003e\n\n\u003ca href=\"https://twitter.com/wasabeef_jp\"\u003e\n\u003cimg alt=\"Follow me on Twitter\"\nsrc=\"https://raw.githubusercontent.com/wasabeef/art/master/twitter.png\" width=\"75\"/\u003e\n\u003c/a\u003e\n\nLicense\n-------\n\n    Copyright (C) 2020 Wasabeef\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":["https://github.com/sponsors/wasabeef"],"categories":["Java","模糊效果"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwasabeef%2FBlurry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwasabeef%2FBlurry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwasabeef%2FBlurry/lists"}