class_docstr: **Bases:** :class:`GraphicsObject <pyqtgraph.GraphicsObject>`
class_docstr_tok: ["*","*","Bases",":","*","*",":","class",":","`","GraphicsObject","<","pyqtgraph.GraphicsObject",">","`"]
docstr: Change the composition mode of the item. This is useful when overlaying
  multiple items.
  
  Parameters
  ----------
  mode : ``QtGui.QPainter.CompositionMode``
      Composition of the item, often used when overlaying items.  Common
      options include:
  
      ``QPainter.CompositionMode.CompositionMode_SourceOver`` (Default)
      Image replaces the background if it is opaque. Otherwise, it uses
      the alpha channel to blend the image with the background.
  
      ``QPainter.CompositionMode.CompositionMode_Overlay`` Image color is
      mixed with the background color to reflect the lightness or
      darkness of the background
  
      ``QPainter.CompositionMode.CompositionMode_Plus`` Both the alpha
      and color of the image and background pixels are added together.
  
      ``QPainter.CompositionMode.CompositionMode_Plus`` The output is the
      image color multiplied by the background.
  
      See ``QPainter::CompositionMode`` in the Qt Documentation for more
      options and details
docstr_tok: ["Change","the","composition","mode","of","the","item",".","This","is","useful","when","overlaying","multiple","items",".","Parameters","--","--","--","--","--","mode",":","``","QtGui.QPainter.CompositionMode","``","Composition","of","the","item",",","often","used","when","overlaying","items",".","Common","options","include",":","``","QPainter.CompositionMode.CompositionMode_SourceOver","``","(","Default",")","Image","replaces","the","background","if","it","is","opaque",".","Otherwise",",","it","uses","the","alpha","channel","to","blend","the","image","with","the","background",".","``","QPainter.CompositionMode.CompositionMode_Overlay","``","Image","color","is","mixed","with","the","background","color","to","reflect","the","lightness","or","darkness","of","the","background","``","QPainter.CompositionMode.CompositionMode_Plus","``","Both","the","alpha","and","color","of","the","image","and","background","pixels","are","added","together",".","``","QPainter.CompositionMode.CompositionMode_Plus","``","The","output","is","the","image","color","multiplied","by","the","background",".","See","``","QPainter",":",":CompositionMode","``","in","the","Qt","Documentation","for","more","options","and","details"]
code: def setCompositionMode(self, mode):
      """
      Change the composition mode of the item. This is useful when overlaying
      multiple items.
  
      Parameters
      ----------
      mode : ``QtGui.QPainter.CompositionMode``
          Composition of the item, often used when overlaying items.  Common
          options include:
  
          ``QPainter.CompositionMode.CompositionMode_SourceOver`` (Default)
          Image replaces the background if it is opaque. Otherwise, it uses
          the alpha channel to blend the image with the background.
  
          ``QPainter.CompositionMode.CompositionMode_Overlay`` Image color is
          mixed with the background color to reflect the lightness or
          darkness of the background
  
          ``QPainter.CompositionMode.CompositionMode_Plus`` Both the alpha
          and color of the image and background pixels are added together.
  
          ``QPainter.CompositionMode.CompositionMode_Plus`` The output is the
          image color multiplied by the background.
  
          See ``QPainter::CompositionMode`` in the Qt Documentation for more
          options and details
      """
      self.paintMode = mode
      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 2 for calling the ImageItem obj's underlying member method code with example usage: obj.setCompositionMode(mode) without return types