class_docstr: **Bases:** :class:`GraphicsObject <pyqtgraph.GraphicsObject>`
class_docstr_tok: ["*","*","Bases",":","*","*",":","class",":","`","GraphicsObject","<","pyqtgraph.GraphicsObject",">","`"]
docstr: Sets display and processing options for this ImageItem. :func:`~pyqtgraph.ImageItem.__init__` and 
  :func:`~pyqtgraph.ImageItem.setImage` support all keyword arguments listed here.
  
  Parameters
  ----------
      autoDownsample: bool
          See :func:`~pyqtgraph.ImageItem.setAutoDownsample`.
      axisOrder: str
          | `'col-major'`: The shape of the array represents (width, height) of the image. This is the default.
          | `'row-major'`: The shape of the array represents (height, width).
      border: bool
          Sets a pen to draw to draw an image border. See :func:`~pyqtgraph.ImageItem.setBorder`.
      compositionMode:
          See :func:`~pyqtgraph.ImageItem.setCompositionMode`
      colorMap: :class:`~pyqtgraph.ColorMap` or `str`
          Sets a color map. A string will be passed to :func:`colormap.get() <pyqtgraph.colormap.get()>`
      lut: array_like
          Sets a color lookup table to use when displaying the image.
          See :func:`~pyqtgraph.ImageItem.setLookupTable`.
      levels: array_like
          Shape of (min, max). Sets minimum and maximum values to use when
          rescaling the image data. By default, these will be set to the
          estimated minimum and maximum values in the image. If the image array
          has dtype uint8, no rescaling is necessary. See
          :func:`~pyqtgraph.ImageItem.setLevels`.
      opacity: float
          Overall opacity for an RGB image. Between 0.0-1.0.
      rect: :class:`QRectF`, :class:`QRect` or array_like
          Displays the current image within the specified rectangle in plot
          coordinates. If ``array_like``, should be of the of ``floats 
          (`x`,`y`,`w`,`h`)`` . See :func:`~pyqtgraph.ImageItem.setRect`.
      update : bool, optional
          Controls if image immediately updates to reflect the new options.
docstr_tok: ["Sets","display","and","processing","options","for","this","ImageItem",".",":","func",":","`","~pyqtgraph.ImageItem.__init__","`","and",":","func",":","`","~pyqtgraph.ImageItem.setImage","`","support","all","keyword","arguments","listed","here",".","Parameters","--","--","--","--","--","autoDownsample",":","bool","See",":","func",":","`","~pyqtgraph.ImageItem.setAutoDownsample","`",".","axisOrder",":","str","|","`","'col-major","'","`",":","The","shape","of","the","array","represents","(","width",",","height",")","of","the","image",".","This","is","the","default",".","|","`","'row-major","'","`",":","The","shape","of","the","array","represents","(","height",",","width",")",".","border",":","bool","Sets","a","pen","to","draw","to","draw","an","image","border",".","See",":","func",":","`","~pyqtgraph.ImageItem.setBorder","`",".","compositionMode",":","See",":","func",":","`","~pyqtgraph.ImageItem.setCompositionMode","`","colorMap",":",":","class",":","`","~pyqtgraph.ColorMap","`","or","`","str","`","Sets","a","color","map",".","A","string","will","be","passed","to",":","func",":","`","colormap.get","(",")","<","pyqtgraph.colormap.get","(",")",">","`","lut",":","array_like","Sets","a","color","lookup","table","to","use","when","displaying","the","image",".","See",":","func",":","`","~pyqtgraph.ImageItem.setLookupTable","`",".","levels",":","array_like","Shape","of","(","min",",","max",")",".","Sets","minimum","and","maximum","values","to","use","when","rescaling","the","image","data",".","By","default",",","these","will","be","set","to","the","estimated","minimum","and","maximum","values","in","the","image",".","If","the","image","array","has","dtype","uint8",",","no","rescaling","is","necessary",".","See",":","func",":","`","~pyqtgraph.ImageItem.setLevels","`",".","opacity",":","float","Overall","opacity","for","an","RGB","image",".","Between","0.0-1.0.","rect",":",":","class",":","`","QRectF","`",",",":","class",":","`","QRect","`","or","array_like","Displays","the","current","image","within","the","specified","rectangle","in","plot","coordinates",".","If","``","array_like","``",",","should","be","of","the","of","``","floats","(","`","x","`",",","`","y","`",",","`","w","`",",","`","h","`",")","``",".","See",":","func",":","`","~pyqtgraph.ImageItem.setRect","`",".","update",":","bool",",","optional","Controls","if","image","immediately","updates","to","reflect","the","new","options","."]
code: def setOpts(self, update=True, **kargs):
      """
      Sets display and processing options for this ImageItem. :func:`~pyqtgraph.ImageItem.__init__` and
      :func:`~pyqtgraph.ImageItem.setImage` support all keyword arguments listed here.
  
      Parameters
      ----------
          autoDownsample: bool
              See :func:`~pyqtgraph.ImageItem.setAutoDownsample`.
          axisOrder: str
              | `'col-major'`: The shape of the array represents (width, height) of the image. This is the default.
              | `'row-major'`: The shape of the array represents (height, width).
          border: bool
              Sets a pen to draw to draw an image border. See :func:`~pyqtgraph.ImageItem.setBorder`.
          compositionMode:
              See :func:`~pyqtgraph.ImageItem.setCompositionMode`
          colorMap: :class:`~pyqtgraph.ColorMap` or `str`
              Sets a color map. A string will be passed to :func:`colormap.get() <pyqtgraph.colormap.get()>`
          lut: array_like
              Sets a color lookup table to use when displaying the image.
              See :func:`~pyqtgraph.ImageItem.setLookupTable`.
          levels: array_like
              Shape of (min, max). Sets minimum and maximum values to use when
              rescaling the image data. By default, these will be set to the
              estimated minimum and maximum values in the image. If the image array
              has dtype uint8, no rescaling is necessary. See
              :func:`~pyqtgraph.ImageItem.setLevels`.
          opacity: float
              Overall opacity for an RGB image. Between 0.0-1.0.
          rect: :class:`QRectF`, :class:`QRect` or array_like
              Displays the current image within the specified rectangle in plot
              coordinates. If ``array_like``, should be of the of ``floats
              (`x`,`y`,`w`,`h`)`` . See :func:`~pyqtgraph.ImageItem.setRect`.
          update : bool, optional
              Controls if image immediately updates to reflect the new options.
      """
      if "axisOrder" in kargs:
          val = kargs["axisOrder"]
          if val not in ("row-major", "col-major"):
              raise ValueError(
                  "axisOrder must be either 'row-major' or 'col-major'"
              )
          self.axisOrder = val
          self._update_data_transforms(
              self.axisOrder
          )  # update cached transforms
      if "colorMap" in kargs:
          self.setColorMap(kargs["colorMap"])
      if "lut" in kargs:
          self.setLookupTable(kargs["lut"], update=update)
      if "levels" in kargs:
          self.setLevels(kargs["levels"], update=update)
      # if 'clipLevel' in kargs:
      # self.setClipLevel(kargs['clipLevel'])
      if "opacity" in kargs:
          self.setOpacity(kargs["opacity"])
      if "compositionMode" in kargs:
          self.setCompositionMode(kargs["compositionMode"])
      if "border" in kargs:
          self.setBorder(kargs["border"])
      if "removable" in kargs:
          self.removable = kargs["removable"]
          self.menu = None
      if "autoDownsample" in kargs:
          self.setAutoDownsample(kargs["autoDownsample"])
      if "rect" in kargs:
          self.setRect(kargs["rect"])
      if update:
          self.update()
  
imports: import warnings
  from collections.abc import Callable
  import numpy
  from ..None import colormap
  from ..None import debug
  from ..None import functions
  from ..None import getConfigOption
  from ..Point import Point
  from ..Qt import QtCore, QtGui, QtWidgets
  from ..util.cupy_helper import getCupy
  from .GraphicsObject import GraphicsObject
label_desc: Use image node_id 15 for calling the ImageItem obj's underlying member method code with example usage: obj.setOpts(update) without return types