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.
//| The bytes in an element can be optionally swapped, and the pixels in an element can be reversed.
442
+
//| 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.
444
443
//|
445
-
//| This function doesn't parse image headers, but is useful to speed up loading of uncompressed image formats such as PCF glyph data.
444
+
//| The bytes in an element can be optionally swapped, and the pixels in an element can be reversed. Also, the
445
+
//| row loading direction can be reversed, which may be requires for loading certain bitmap files.
446
+
//|
447
+
//| This function doesn't parse image headers, but is useful to speed up loading of uncompressed image formats such as PCF glyph data.
446
448
//|
447
449
//| :param displayio.Bitmap bitmap: A writable bitmap
448
450
//| :param typing.BinaryIO file: A file opened in binary mode
449
451
//| :param int bits_per_pixel: Number of bits per pixel. Values 1, 2, 4, 8, 16, 24, and 32 are supported;
450
452
//| :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.
451
453
//| :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.
452
454
//| :param bool swap_bytes_in_element: If the ``element_size`` is not 1, then reverse the byte order of each element read.
455
+
//| :param bool reverse_rows: Reverse the direction of the row loading (required for some bitmap images).
0 commit comments