beatmup.AbstractBitmap¶
- class beatmup.AbstractBitmap¶
Abstract bitmap class
- __init__(*args, **kwargs)¶
Methods
__init__
(*args, **kwargs)get_context
(self)Returns Context the current bitmap is attached to
get_depth
(self)Returns depth of the texture in pixels
get_height
(self)Returns height of the texture in pixels
get_memory_size
(self)Returns bitmap size in bytes
get_number_of_channels
(self)Returns number of channels containing in the texture
get_pixel_format
(self)Returns pixel format of the bitmap
get_width
(self)Returns width of the texture in pixels
save_bmp
(self, filename)Saves a bitmap to a BMP file
zero
(self)Sets all the pixels to zero