beatmup.Bitmap

class beatmup.Bitmap

A bitmap wrapping a numpy container without copying

__init__(self: beatmup.Bitmap, arg0: beatmup.Context, arg1: buffer) None

Methods

__init__(self, arg0, arg1)

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