Trait sdl2::image::SaveSurface
source · [−]pub trait SaveSurface {
fn save<P: AsRef<Path>>(&self, filename: P) -> Result<(), String>;
fn save_rw(&self, dst: &mut RWops<'_>) -> Result<(), String>;
}
Expand description
Method extensions to Surface for saving to disk