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: Setting scaled=True will cause the entire image to be displayed within the boundaries of the widget.
  This also greatly reduces the speed at which it will draw frames.
docstr_tok: ["Setting","scaled=True","will","cause","the","entire","image","to","be","displayed","within","the","boundaries","of","the","widget",".","This","also","greatly","reduces","the","speed","at","which","it","will","draw","frames","."]
code: def __init__(self, parent=None, scaled=False):
      """
      Setting scaled=True will cause the entire image to be displayed within the boundaries of the widget.
      This also greatly reduces the speed at which it will draw frames.
      """
      QtWidgets.QWidget.__init__(self, parent)
      self.setSizePolicy(
          QtWidgets.QSizePolicy(
              QtWidgets.QSizePolicy.Policy.Expanding,
              QtWidgets.QSizePolicy.Policy.Expanding,
          )
      )
      self.scaled = scaled
      self.opts = None
      self.image = None
      self._cp = getCupy()
  
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 1 to create a new RawImageWidget object from inherited base classes: QtWidgets with example: obj = RawImageWidget(parent, scaled)