class_docstr: Widget optimized for very fast video display.
  Generally using an ImageItem inside GraphicsView is fast enough.
  On some systems this may provide faster video. See the VideoSpeedTest example for benchmarking.
docstr: img must be ndarray of shape (x,y), (x,y,3), or (x,y,4).
  Extra arguments are sent to functions.makeARGB
docstr_tok: ["img","must","be","ndarray","of","shape","(","x",",","y",")",",","(","x",",","y,3",")",",","or","(","x",",","y,4",")",".","Extra","arguments","are","sent","to","functions.makeARGB"]
code: def setImage(self, img, *args, **kargs):
      """
      img must be ndarray of shape (x,y), (x,y,3), or (x,y,4).
      Extra arguments are sent to functions.makeARGB
      """
      if getConfigOption("imageAxisOrder") == "col-major":
          img = img.swapaxes(0, 1)
      self.opts = (img, args, kargs)
      self.image = None
      self.update()
  
file_path: pyqtgraph/pyqtgraph/widgets/RawImageWidget.py
imports: from ..None import functions
  from ..None import getConfigOption, getCupy
  from ..Qt import QtCore, QtGui, QtWidgets
label_desc: Use image node_id 2 for calling the RawImageWidget obj's underlying member method code with example usage: obj.setImage(img) without return types