diff options
-rw-r--r-- | gifed/src/reader/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gifed/src/reader/mod.rs b/gifed/src/reader/mod.rs index d81961c..b1bcc32 100644 --- a/gifed/src/reader/mod.rs +++ b/gifed/src/reader/mod.rs @@ -109,6 +109,14 @@ pub struct Reader<R: Read> { } impl<R: Read> Reader<R> { + pub fn width(&self) -> u16 { + self.screen_descriptor.width + } + + pub fn height(&self) -> u16 { + self.screen_descriptor.height + } + pub fn block(&mut self) -> Result<Option<ReadBlock>, DecodeError> { if self.saw_trailer { return Ok(None); |