Struct allegro::Bitmap
[−]
[src]
pub struct Bitmap { /* fields omitted */ }
Methods
impl Bitmap
[src]
fn new(_: &Core, w: i32, h: i32) -> Result<Bitmap, ()>
fn load(_: &Core, filename: &str) -> Result<Bitmap, ()>
fn maybe_clone(&self) -> Result<Bitmap, ()>
fn into_memory_bitmap(self) -> Result<MemoryBitmap, Bitmap>
Trait Implementations
impl BitmapLike for Bitmap
[src]
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)
fn is_compatible_bitmap(&self) -> bool
Returns if this bitmap is compatible with the current display. This comes into play when you have multiple displays in a single thread, and have created bitmaps for different displays. A bitmap created for one display may or may not be compatible with the other display. If the bitmap is not compatible, drawing it will be slow. Read more
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