code: def recarray_view(qimage):
      
      raw = _qimage_or_filename_view(qimage)
      if raw.itemsize != 4:
          raise ValueError("For rgb_view, the image must have 32 bit pixel size (use RGB32, ARGB32, or ARGB32_Premultiplied)")
      return raw.view(bgra_dtype, _np.recarray)
docs: Returns recarray_ view of a given 32-bit color QImage_'s
      memory.
  
      The result is a 2D array with a complex record dtype, offering the
      named fields 'r','g','b', and 'a' and corresponding long names.
      Thus, each color components can be accessed either via string
      indexing or via attribute lookup (through numpy.recarray_):
  
      For your convenience, `qimage` may also be a filename, see
      `Loading and Saving Images`_ in the documentation.
  
      >>> from PyQt4.QtGui import QImage, qRgb
      >>> qimg = QImage(320, 240, QImage.Format_ARGB32)
      >>> qimg.fill(qRgb(12,34,56))
      >>>
      >>> import qimage2ndarray
      >>> v = qimage2ndarray.recarray_view(qimg)
      >>>
      >>> red = v["r"]
      >>> red[10,10]
      12
      >>> pixel = v[10,10]
      >>> pixel["r"]
      12
      >>> (v.g == v["g"]).all()
      True
      >>> (v.alpha == 255).all()
      True
  
      :param qimage: image whose memory shall be accessed via NumPy
      :type qimage: QImage_ with 32-bit pixel type
      :rtype: numpy.ndarray_ with shape (height, width) and dtype :data:`bgra_dtype`