Struct freeimage::Bitmap
[−]
[src]
pub struct Bitmap { /* fields omitted */ }
Methods
impl Bitmap
[src]
fn load(filename: &str) -> Result<Bitmap, &'static str>
fn load_with_format(fif: Format, filename: &str) -> Result<Bitmap, &'static str>
fn load_from_memory(buffer: Vec<u8>) -> Result<Bitmap, &'static str>
fn new<T: Clone>(
ty: Type,
width: usize,
height: usize,
bpp: usize,
data: Option<&[T]>
) -> Bitmap
ty: Type,
width: usize,
height: usize,
bpp: usize,
data: Option<&[T]>
) -> Bitmap
fn save(&self, filename: &str, flags: i32) -> Result<(), String>
fn width(&self) -> usize
fn height(&self) -> usize
fn bpp(&self) -> usize
fn ty(&self) -> Type
fn pitch(&self) -> usize
fn bits(&self) -> &[u8]
fn pixels<T>(&self) -> &[T]
fn bits_mut(&mut self) -> &mut [u8]
fn pixels_mut<T>(&mut self) -> &mut [T]
fn scanlines<'a>(&'a self) -> ScanLines<'a>
fn scanlines_mut(&mut self) -> ScanLinesMut
fn flip_vertical(self) -> Result<Bitmap, String>
fn rescale(&self, w: usize, h: usize, filter: Filter) -> Result<Bitmap, String>
Trait Implementations
impl Send for Bitmap
[src]
impl Clone for Bitmap
[src]
fn clone(&self) -> Bitmap
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more