'Shuffle the offscreen PixMap data, because it may have funny stride values'

def _getpixmapcontent(self):

    rowbytes = Qdoffs.GetPixRowBytes(self.pixmap)
    width = self.videodescr['width']
    height = self.videodescr['height']
    start = 0
    rv = []
    for i in range(height):
        nextline = Qdoffs.GetPixMapBytes(self.pixmap, start, (width * 4))
        start = (start + rowbytes)
        rv.append(nextline)
    return ''.join(rv)
