diff options
author | Genny <gen@nyble.dev> | 2021-11-21 18:35:57 -0600 |
---|---|---|
committer | Genny <gen@nyble.dev> | 2021-11-21 18:35:57 -0600 |
commit | 1de64a3818875947f7f1044b1d4cfdf271b04fd3 (patch) | |
tree | 3a5bfbb237d67832dfa1beeb3d28566173484b63 /examples | |
parent | f35e18cb0531e7d6a3544560746d592aa47ed555 (diff) | |
download | gifed-1de64a3818875947f7f1044b1d4cfdf271b04fd3.tar.gz gifed-1de64a3818875947f7f1044b1d4cfdf271b04fd3.zip |
Bring gifprobe into this repository
Diffstat (limited to 'examples')
-rw-r--r-- | examples/read.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/examples/read.rs b/examples/read.rs deleted file mode 100644 index 3c40bfe..0000000 --- a/examples/read.rs +++ /dev/null @@ -1,22 +0,0 @@ -use gifed::{ - reader::{self, GifReader}, - writer::ImageBuilder, - Gif, -}; - -fn main() { - let reader = GifReader::file("examples/simulation.gif").unwrap(); - let first = reader.images().next().unwrap(); - - Gif::builder(first.width(), first.height()) - .palette(first.palette().clone()) - .image( - ImageBuilder::new(first.width(), first.height()) - .transparent_index(first.transparent_index()) - .indicies(first.indicies()), - ) - .build() - .unwrap() - .save("first.gif") - .unwrap(); -} |