Gets the offset in bytes for a row of width pixels on the screen.
width
the width in pixels
the number of bytes per row.