code: def __init__(self, item):
      Exporter.__init__(self, item)
      tr = self.getTargetRect()
      if isinstance(item, QtWidgets.QGraphicsItem):
          scene = item.scene()
      else:
          scene = item
      bgbrush = scene.views()[0].backgroundBrush()
      bg = bgbrush.color()
      if bgbrush.style() == QtCore.Qt.BrushStyle.NoBrush:
          bg.setAlpha(0)
  
      self.params = Parameter(
          name="params",
          type="group",
          children=[
              {
                  "name": "width",
                  "title": translate("Exporter", "width"),
                  "type": "int",
                  "value": int(tr.width()),
                  "limits": (0, None),
              },
              {
                  "name": "height",
                  "title": translate("Exporter", "height"),
                  "type": "int",
                  "value": int(tr.height()),
                  "limits": (0, None),
              },
              {
                  "name": "antialias",
                  "title": translate("Exporter", "antialias"),
                  "type": "bool",
                  "value": True,
              },
              {
                  "name": "background",
                  "title": translate("Exporter", "background"),
                  "type": "color",
                  "value": bg,
              },
              {
                  "name": "invertValue",
                  "title": translate("Exporter", "invertValue"),
                  "type": "bool",
                  "value": False,
              },
          ],
      )
      self.params.param("width").sigValueChanged.connect(
          self.widthChanged
      )
      self.params.param("height").sigValueChanged.connect(
          self.heightChanged
      )
  
file_path: pyqtgraph/pyqtgraph/exporters/ImageExporter.py
imports: import sys
  import numpy
  from ..None import functions
  from ..parametertree import Parameter
  from ..Qt import QtCore, QtGui, QtWidgets
  from .Exporter import Exporter
label_desc: Use image node_id 1 to create a new ImageExporter object from inherited base classes: Exporter with example: obj = ImageExporter(item)