[][src]Trait sdl2::image::SaveSurface

pub trait SaveSurface {
    fn save<P: AsRef<Path>>(&self, filename: P) -> Result<(), String>;
fn save_rw(&self, dst: &mut RWops) -> Result<(), String>; }

Method extensions to Surface for saving to disk

Required methods

fn save<P: AsRef<Path>>(&self, filename: P) -> Result<(), String>

fn save_rw(&self, dst: &mut RWops) -> Result<(), String>

Loading content...

Implementors

impl<'a> SaveSurface for Surface<'a>[src]

fn save<P: AsRef<Path>>(&self, filename: P) -> Result<(), String>[src]

Saves an SDL Surface to a file

fn save_rw(&self, dst: &mut RWops) -> Result<(), String>[src]

Saves an SDL Surface to an RWops

Loading content...