pub trait BmpSaveExt {
    // Required method
    fn save_bmp(&self, file_name: &str) -> Result<(), BmpSaveError>;
}
Expand description

An extension for a Surface to save the image as BMP format.

Required Methods§

source

fn save_bmp(&self, file_name: &str) -> Result<(), BmpSaveError>

Saves the surface image as BMP format.

§Errors

Returns Err if failed to save an image to the file.

Implementors§