beatmup.PixelFormat

class beatmup.PixelFormat

Specifies bitmap pixel format

Members:

SINGLE_BYTE : single channel of 8 bits per pixel (like grayscale), unsigned integer values

TRIPLE_BYTE : 3 channels of 8 bits per pixel (like RGB), unsigned integer values

QUAD_BYTE : 4 channels of 8 bits per pixel (like RGBA), unsigned integer values

SINGLE_FLOAT : single channel of 32 bits per pixel (like grayscale), single precision floating point values

TRIPLE_FLOAT : 3 channels of 32 bits per pixel, single precision floating point values

QUAD_FLOAT : 4 channels of 32 bits per pixel, single precision floating point values

BINARY_MASK : 1 bit per pixel

QUATERNARY_MASK : 2 bits per pixel

HEX_MASK : 4 bits per pixel

__init__(self: beatmup.PixelFormat, value: int) None

Methods

__init__(self, value)

Attributes

BINARY_MASK

HEX_MASK

QUAD_BYTE

QUAD_FLOAT

QUATERNARY_MASK

SINGLE_BYTE

SINGLE_FLOAT

TRIPLE_BYTE

TRIPLE_FLOAT

name

value