pub fn save<P: AsRef<Path>>(&self, path: P) -> Result<(), Error> {
        let path = path.as_ref();
        if let Some(parent_path) = path.parent() {
            std::fs::create_dir_all(&parent_path)?;
        }

        self.inner.color_map.save(&path)?;
        Ok(())
    }
/// Saves the generated image to the specified path
Saves the generated image to the specified path
Saves the generated image to the specified path
pub fn save<P: AsRef<Path>>(&self, path: P) -> Result<(), Error> {
        let path = path.as_ref();
        if let Some(parent_path) = path.parent() {
            std::fs::create_dir_all(&parent_path)?;
        }
        self.inner.color_map.save(&path)?;
        Ok(())
    }
pub fn save < P : AsRef < Path > > ( & self , path : P ) -> Result < ( ) , Error > { let path = path . as_ref ( ) ; if let Some ( parent_path ) = path . parent ( ) { std :: fs :: create_dir_all ( & parent_path ) ? ; } self . inner . color_map . save ( & path ) ? ; Ok ( ( ) ) }
Saves the generated image to the specified path
Saves the generated image to the specified path
&self
path
P
&self
path
P