class_docstr: **Bases:** :class:`GraphicsObject <pyqtgraph.GraphicsObject>`
class_docstr_tok: ["*","*","Bases",":","*","*",":","class",":","`","GraphicsObject","<","pyqtgraph.GraphicsObject",">","`"]
code: def boundingRect(self):
      if self.image is None:
          return QtCore.QRectF(0.0, 0.0, 0.0, 0.0)
      return QtCore.QRectF(
          0.0, 0.0, float(self.width()), float(self.height())
      )
  
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 7 for calling the ImageItem obj's underlying member method code with example usage: obj.boundingRect() and returns: QtCore, QtCore