diff options
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(); -} |