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