class documentation

Converter for black-and-white pixels packed eight-per-byte

Class Method get Converts bytes -> tuple[int, int, int, int, int, int, int, int]
Class Method set Converts tuple[int, int, int, int, int, int, int, int] -> bytes
Type Alias _T Undocumented
@classmethod
def get(cls, data: bytes, **kwargs) -> _T: (source)

Converts bytes -> tuple[int, int, int, int, int, int, int, int]

Parameters
data:bytesThe raw bytes to convert
**kwargsUndocumented
Returns
_TA tuple of eight integers in {0, 255} corresponding to the bits of data
@classmethod
def set(cls, value: _T, **kwargs) -> bytes: (source)

Converts tuple[int, int, int, int, int, int, int, int] -> bytes

Parameters
value:_TThe value to convert
**kwargsUndocumented
Returns
bytesThe values in value joined into a single byte

Undocumented

Value
tuple[int, ...]