CloverBootloader/CloverApp/libimagequant-2.12.6/rust-api
vectorsigma72 286f7c643f Optimize Theme ability for Clover.app
When this option is enabled all png images will be converted to PNG-8 (8 bit per pixel).
2020-03-07 19:30:59 +01:00
..
examples Optimize Theme ability for Clover.app 2020-03-07 19:30:59 +01:00
src Optimize Theme ability for Clover.app 2020-03-07 19:30:59 +01:00
.gitignore Optimize Theme ability for Clover.app 2020-03-07 19:30:59 +01:00
Cargo.toml Optimize Theme ability for Clover.app 2020-03-07 19:30:59 +01:00
COPYRIGHT Optimize Theme ability for Clover.app 2020-03-07 19:30:59 +01:00
README.md Optimize Theme ability for Clover.app 2020-03-07 19:30:59 +01:00

libimagequant bindings for Rust

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 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 and Rust function reference.