mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-18 15:27:48 +01:00
c8969630f3
Introduced a real Property List Editor. Fixed Theme manager engine. Other minor fixes
16 lines
720 B
Markdown
16 lines
720 B
Markdown
# [libimagequant](https://pngquant.org/lib/) bindings for [Rust](https://www.rust-lang.org/)
|
|
|
|
Imagequant library converts RGBA images to 8-bit indexed images with palette, *including* alpha component.
|
|
It's ideal for generating tiny PNG images (although [image I/O](https://github.com/kornelski/lodepng-rust) isn't handled by the library itself).
|
|
|
|
This wrapper makes the library usable from Rust.
|
|
|
|
Rust API closely follows the C API, but is slightly OO-ified:
|
|
|
|
liq_set_dithering_level(result, 1.0);
|
|
↓
|
|
result.set_dithering_level(1.0);
|
|
|
|
For more details see [libimagequant documentation](https://pngquant.org/lib/) and [Rust function reference](https://kornelski.github.io/libimagequant-rust/imagequant/).
|
|
|