uBytes

The number of bytes to update. Consider the bits per pixel, and avoid specifying a number that goes past the end of the row.

For a 1-bit bitmap, each byte represents 8 pixels. For a 4-bit bitmap, each byte represents 2 pixels. For an 8-bit bitmap, each byte represents 1 pixel. For a 16-bit bitmap, every 2 bytes represent one pixel. For 24-bit images, every three bytes represent one pixel. For a 32-bit bitmap, every four bytes represent one pixel. For a 48-bit bitmap, every six bytes represent one pixel. For a 64-bit bitmap, every eight bytes represent one pixel.