Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/BytesZero/Fglass
Frosted glass(毛玻璃效果)
https://github.com/BytesZero/Fglass
Last synced: 13 days ago
JSON representation
Frosted glass(毛玻璃效果)
- Host: GitHub
- URL: https://github.com/BytesZero/Fglass
- Owner: BytesZero
- License: apache-2.0
- Created: 2015-05-09T04:20:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-09T13:52:39.000Z (over 9 years ago)
- Last Synced: 2024-10-19T16:27:09.077Z (23 days ago)
- Language: Java
- Size: 3.68 MB
- Stars: 84
- Watchers: 4
- Forks: 26
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fglass
Frosted glass(毛玻璃效果),在网上搜索了许多但是执行的效率特别的低,这个是在StackOverFlow中看到的一些简单的方法然后修改了进行了优化,在真机上可以跑出5ms的最佳成绩,Very Good。
###效果图
![](/demoimage/img1.png)
![](/demoimage/img2.png)###使用
1.copy ```com.zsl.fglass.utils.Fglass```到你的项目中
2.调用
```java
Fglass.blur(image, text, 2, 8);
```
###注意点
> 2 :模糊度
8 :缩放比例
我们可以使用模糊度(1-25)配合缩放比例来使用,达到计算高斯模糊的Fast