kornelski / image-gif-dispose

Implements GIF disposal method (full rendering of frames) for the Rust gif crate
https://lib.rs/gif-dispose
20 stars 2 forks source link

How to use it with ColorOutput::RGBA? #1

Closed Boscop closed 6 years ago

Boscop commented 6 years ago

I want to render gifs using glium so I need the frame data as RGBA, as described here: https://github.com/PistonDevelopers/image-gif/issues/32#issue-200563939

How can I use ColorOutput::RGBA with this crate? :)

kornelski commented 6 years ago

screen.pixels is RGBA. It needs indexed input in order to produce RGBA output.

Boscop commented 6 years ago

Thanks, and does Screen expand all the frames to the size of the gif (padded with transparency), placing them at their position?

kornelski commented 6 years ago

Yes, of course.