Struct gif_dispose::Screen
[−]
[src]
pub struct Screen { pub pixels: ImgVec<RGBA8>, // some fields omitted }
Fields
pixels: ImgVec<RGBA8>
Result of combining frames
Methods
impl Screen
[src]
fn new_reader<T: Read>(reader: &Reader<T>) -> Self
[src]
Initialize empty screen from GIF Reader.
Make sure Reader is set to use Indexed color.
decoder.set(gif::ColorOutput::Indexed);
fn new(
width: usize,
height: usize,
bg_color: RGBA8,
global_pal: Option<Vec<RGBA8>>
) -> Self
[src]
width: usize,
height: usize,
bg_color: RGBA8,
global_pal: Option<Vec<RGBA8>>
) -> Self
fn blit_frame(&mut self, frame: &Frame) -> Result<ImgRef<RGBA8>, Error>
[src]
Advance the screen by one frame.
The result will be in screen.pixels.buf
fn blit(
&mut self,
local_pal: Option<&[RGBA8]>,
method: DisposalMethod,
left: u16,
top: u16,
buffer: ImgRef<u8>,
transparent: Option<u8>
) -> Result<ImgRef<RGBA8>, Error>
[src]
&mut self,
local_pal: Option<&[RGBA8]>,
method: DisposalMethod,
left: u16,
top: u16,
buffer: ImgRef<u8>,
transparent: Option<u8>
) -> Result<ImgRef<RGBA8>, Error>