bmaslakov / Android Close Pixelate
Licence: mit
Android port of https://github.com/desandro/close-pixelate
Stars: ✭ 146
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Android Close Pixelate
Androidanimationexercise
Android 动画各种实现,包括帧动画、补间动画和属性动画的总结分享
Stars: ✭ 1,254 (+758.9%)
Mutual labels: bitmap
Lora Serialization
LoraWAN serialization/deserialization library for The Things Network
Stars: ✭ 120 (-17.81%)
Mutual labels: bitmap
Pencil
Pencil2D is an easy, intuitive tool to make 2D hand-drawn animations. Pencil2D is open source and cross-platform.
Stars: ✭ 968 (+563.01%)
Mutual labels: bitmap
Circularimageview
This project allowing you to create circular and rounded corner Imageview in android through simplest way.
Stars: ✭ 90 (-38.36%)
Mutual labels: bitmap
Doramon
常见工具汇总:一键式生成整个前后端工具,单机高性能幂等工具,zookeeper客户端工具,分布式全局id生成器,一致性哈希工具,Bitmap工具,布隆过滤器参数生成器,Yaml和properties互转工具等等
Stars: ✭ 24 (-83.56%)
Mutual labels: bitmap
Kluban
Lifecycle + Kotlin 协程 + flow + LiveData + Glide 识别和内存优化 + Luban采样算法 = KLuban图片压缩
Stars: ✭ 144 (-1.37%)
Mutual labels: bitmap
D2dlib
A .NET library for hardware-accelerated, high performance, immediate mode rendering via Direct2D.
Stars: ✭ 84 (-42.47%)
Mutual labels: bitmap
Fastbitset.js
Speed-optimized BitSet implementation for modern browsers and JavaScript engines
Stars: ✭ 118 (-19.18%)
Mutual labels: bitmap
Bitvec
Bit vectors: 8x less memory, up to 1000x faster than Vector Bool
Stars: ✭ 46 (-68.49%)
Mutual labels: bitmap
Kakwafont
Kakwafont, a 12px monospace bitmap font based on Terminus
Stars: ✭ 76 (-47.95%)
Mutual labels: bitmap
Drawablecolorchange
Android Library to dynamically change color of drawable.
Stars: ✭ 101 (-30.82%)
Mutual labels: bitmap
Libqpsd
PSD (Photoshop Document) & PSB (Photoshop Big) Plugin for Qt/C++ (Qt4/Qt5)
Stars: ✭ 90 (-38.36%)
Mutual labels: bitmap
Easyrs
Convenience RenderScript tools for processing common Android formats such as Bitmap and NV21.
Stars: ✭ 144 (-1.37%)
Mutual labels: bitmap
Basalt
高性能的分布式的专门空间优化的 Bitmap 服务, 高效检查数据是否存在,日活统计,签到,打点等等
Stars: ✭ 128 (-12.33%)
Mutual labels: bitmap
Graver
Graver 是一款高效的 UI 渲染框架,它以更低的资源消耗来构建十分流畅的 UI 界面。Graver 独创性的采用了基于绘制的视觉元素分解方式来构建界面,得益于此,该框架能让 UI 渲染过程变得更加简单、灵活。https://cocoapods.org/pods/Graver
Stars: ✭ 1,482 (+915.07%)
Mutual labels: bitmap
android-close-pixelate
This simple library allows you to easily create and combine various pixelation effects.
Based on a wonderful script by David DeSandro: close-pixelate.desandro.com.
You may be also be interested in the iOS/Swift version of the library.
Examples
Pixelate.render(bitmap,
new PixelateLayer.Builder(PixelateLayer.Shape.Diamond)
.setResolution(48)
.setSize(50)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Diamond)
.setResolution(48)
.setOffset(24)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Circle)
.setResolution(8)
.setSize(6)
.build());
Pixelate.render(bitmap,
new PixelateLayer.Builder(PixelateLayer.Shape.Square)
.setResolution(32)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Circle)
.setResolution(32)
.setOffset(15)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Circle)
.setResolution(32)
.setSize(26)
.setOffset(13)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Circle)
.setResolution(32)
.setSize(18)
.setOffset(10)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Circle)
.setResolution(32)
.setSize(12)
.setOffset(8)
.build());
Pixelate.render(bitmap,
new PixelateLayer.Builder(PixelateLayer.Shape.Square)
.setResolution(48)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Diamond)
.setResolution(48)
.setOffset(12)
.setAlpha(0.5f)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Diamond)
.setResolution(48)
.setOffset(36)
.setAlpha(0.5f)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Circle)
.setResolution(16)
.setSize(8)
.setOffset(4)
.build());
Pixelate.render(bitmap,
new PixelateLayer.Builder(PixelateLayer.Shape.Circle)
.setResolution(32)
.setSize(6)
.setOffset(8)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Circle)
.setResolution(32)
.setSize(9)
.setOffset(16)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Circle)
.setResolution(32)
.setSize(12)
.setOffset(24)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Circle)
.setResolution(32)
.setSize(9)
.setOffset(0)
.build());
Pixelate.render(bitmap,
new PixelateLayer.Builder(PixelateLayer.Shape.Diamond)
.setResolution(24)
.setSize(25)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Diamond)
.setResolution(24)
.setOffset(12)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Square)
.setResolution(24)
.setAlpha(0.6f)
.build());
Pixelate.render(bitmap,
new PixelateLayer.Builder(PixelateLayer.Shape.Square)
.setResolution(32)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Circle)
.setResolution(32)
.setOffset(16)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Circle)
.setResolution(32)
.setOffset(0)
.setAlpha(0.5f)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Circle)
.setResolution(16)
.setSize(9)
.setOffset(0)
.setAlpha(0.5f)
.build());
Pixelate.render(bitmap,
new PixelateLayer.Builder(PixelateLayer.Shape.Circle)
.setResolution(24)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Circle)
.setResolution(24)
.setSize(9)
.setOffset(12)
.build());
Pixelate.render(bitmap,
new PixelateLayer.Builder(PixelateLayer.Shape.Square)
.setResolution(48)
.setOffset(24)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Circle)
.setResolution(48)
.setOffset(0)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Diamond)
.setResolution(16)
.setSize(15)
.setOffset(0)
.setAlpha(0.6f)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Diamond)
.setResolution(16)
.setSize(15)
.setOffset(8)
.setAlpha(0.6f)
.build());
Pixelate.render(bitmap,
new PixelateLayer.Builder(PixelateLayer.Shape.Square)
.setResolution(48)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Diamond)
.setResolution(12)
.setSize(8)
.build(),
new PixelateLayer.Builder(PixelateLayer.Shape.Diamond)
.setResolution(12)
.setSize(8)
.setOffset(6)
.build());
Download
The library is available at jcenter:
repositories {
jcenter()
}
dependencies {
compile 'io.uuddlrlrba:close-pixelate:1.2.0'
}
Usage
There are several Pixelate.from*
methods in the
Pixelate
class, allowing to create a pixelated bitmap from other bitmaps, resources, input streams, etc:
Bitmap pixelated = new Pixelate.fromBitmap(
bitmap,
new PixelateLayer.Builder(PixelateLayer.Shape.Square)
.setResolution(48)
.setSize(50)
.build()
);
You also can draw directly on a bitmap or on a canvas, using Pixelate.render*
methods.
There are three basic layer types:
Original | Square | Diamond | Circle |
---|---|---|---|
You can change size, resolution, offset and alpha parameters of each layer:
resolution = 10 | resolution = 25 | resolution = 20, size = 50, alpha = 0.5 |
---|---|---|
You can also combine several layers into one image:
square, resolution = 25 | diamond, resolution = 10 | |||
---|---|---|---|---|
+ | = |
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].