(cls, height, width, pitch, buffer)
return cls._create_from_rows([
            memoryview(buffer)[_offset:_offset+width]
            for _offset in xrange(0, height*pitch, pitch)
        ])
Create a byte matrix as a view on a contiguous row-major buffer.
Create a byte matrix as a view on a contiguous row-major buffer.
Create a byte matrix as a view on a contiguous row - major buffer .
def view_from_buffer(cls, height, width, pitch, buffer):
        """Create a byte matrix as a view on a contiguous row-major buffer."""
        return cls._create_from_rows([
            memoryview(buffer)[_offset:_offset+width]
            for _offset in xrange(0, height*pitch, pitch)
        ])
def view_from_buffer ( cls , height , width , pitch , buffer ) : return cls . _create_from_rows ( [ memoryview ( buffer ) [ _offset : _offset + width ] for _offset in xrange ( 0 , height * pitch , pitch ) ] )