def stride(width: int, bits_per_pixel: int) -> int:
"""Return the number of bytes per row of a bitmap with the given width and bits per pixel."""
row_width = width * bits_per_pixel
def stride(width: int, bits_per_pixel: int) -> int:
"""Return the number of bytes per row of a bitmap with the given width and bits per pixel."""
row_width = width * bits_per_pixel