Trait allegro::BitmapLike [] [src]

pub trait BitmapLike {
    fn get_allegro_bitmap(&self) -> *mut ALLEGRO_BITMAP;

    fn get_width(&self) -> i32 { ... }
    fn get_height(&self) -> i32 { ... }
    fn get_format(&self) -> PixelFormat { ... }
    fn get_flags(&self) -> BitmapFlags { ... }
    fn get_pixel(&self, x: i32, y: i32) -> Color { ... }
    fn convert_mask_to_alpha(&self, mask_color: Color) { ... }
}

Required Methods

fn get_allegro_bitmap(&self) -> *mut ALLEGRO_BITMAP

Provided Methods

fn get_width(&self) -> i32

fn get_height(&self) -> i32

fn get_format(&self) -> PixelFormat

fn get_flags(&self) -> BitmapFlags

fn get_pixel(&self, x: i32, y: i32) -> Color

fn convert_mask_to_alpha(&self, mask_color: Color)

Implementors