diff --git a/src/lib.rs b/src/lib.rs index fda1cb2..d64c02c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -243,6 +243,15 @@ impl Image, CHANNELS> { } macro_rules! save { ($channels:literal == $clr:ident ($clrhuman:literal)) => { + impl Image, $channels> { + #[doc = "Save this "] + #[doc = $clrhuman] + #[doc = " image."] + pub fn save(&self, f: impl AsRef) { + self.as_ref().save(f) + } + } + impl Image<&[u8], $channels> { #[cfg(feature = "save")] #[doc = "Save this "]