picto
An image handling library.
Usage
Add the following to the Cargo.toml in your project:
[]
= "0.2"
Supported Formats
| Format | Decoding | Encoding |
|---|---|---|
| PNG | ✔ | ✔ |
| JPEG | ✔ | ✘ |
| GIF | ✔ | ✔ |
| BMP | ✔ | ✔ |
| TGA | ✔ | ✔ |
| XYZ | ✔ | ✘ |
Example
The following example turns an image to gray scale (maintaining the alpha), then upscales it, and blurs it.
extern crate picto;
use ;
use ;
use *;
use env;