about summary refs log tree commit diff
path: root/src/writer/gifbuilder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/writer/gifbuilder.rs')
-rw-r--r--src/writer/gifbuilder.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/writer/gifbuilder.rs b/src/writer/gifbuilder.rs
index 2cdc52c..7e5138a 100644
--- a/src/writer/gifbuilder.rs
+++ b/src/writer/gifbuilder.rs
@@ -1,4 +1,4 @@
-use crate::block::{Block, ColorTable, ScreenDescriptor, Version};
+use crate::block::{Block, ColorTable, ScreenDescriptor, Version, extension::Extension};
 use crate::writer::ImageBuilder;
 use crate::Gif;
 
@@ -44,6 +44,11 @@ impl GifBuilder {
 		self
 	}
 
+	pub fn extension(mut self, ext: Extension) -> Self {
+		self.blocks.push(Block::Extension(ext));
+		self
+	}
+
 	pub fn build(self) -> Gif {
 		let mut lsd = ScreenDescriptor {
 			width: self.width,