You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//| The file must be positioned so that it consists of ``bitmap.height`` rows of pixel data, where each row is the smallest multiple of ``element_size`` bytes that can hold ``bitmap.width`` pixels.
439
+
//| """Reads from a binary file into a bitmap.
443
440
//|
444
-
//| The bytes in an element can be optionally swapped, and the pixels in an element can be reversed.
441
+
//| The file must be positioned so that it consists of ``bitmap.height`` rows of pixel data, where each row is the smallest multiple of ``element_size`` bytes that can hold ``bitmap.width`` pixels.
445
442
//|
446
-
//| This function doesn't parse image headers, but is useful to speed up loading of uncompressed image formats such as PCF glyph data.
443
+
//| The bytes in an element can be optionally swapped, and the pixels in an element can be reversed.
444
+
//|
445
+
//| This function doesn't parse image headers, but is useful to speed up loading of uncompressed image formats such as PCF glyph data.
447
446
//|
448
447
//| :param displayio.Bitmap bitmap: A writable bitmap
449
448
//| :param typing.BinaryIO file: A file opened in binary mode
450
449
//| :param int bits_per_pixel: Number of bits per pixel. Values 1, 2, 4, 8, 16, 24, and 32 are supported;
451
450
//| :param int element_size: Number of bytes per element. Values of 1, 2, and 4 are supported, except that 24 ``bits_per_pixel`` requires 1 byte per element.
452
451
//| :param bool reverse_pixels_in_element: If set, the first pixel in a word is taken from the Most Signficant Bits; otherwise, it is taken from the Least Significant Bits.
453
452
//| :param bool swap_bytes_in_element: If the ``element_size`` is not 1, then reverse the byte order of each element read.
454
-
//| """
453
+
//| :param bool reverse_rows: Reverse the direction of the row loading."""
0 commit comments