class_docstr: BackgroundRenderer for visualizing a background image.
  
  Parameters
  ----------
  parent : Renderer
      The parent renderer for the background renderer.
  image_path : str
      Path to the image to use as a background.
  scale : float, default: 1
      Scaling factor for the background image.
  view_port : tuple[float], optional
      Viewport for the background renderer.
docstr: Resize a background renderer.
  
  Parameters
  ----------
  *args : tuple
      Ignored arguments.
docstr_tok: ["Resize","a","background","renderer",".","Parameters","--","--","--","--","--","*","args",":","tuple","Ignored","arguments","."]
code: def resize(self, *args):
      """Resize a background renderer.
  
      Parameters
      ----------
      *args : tuple
          Ignored arguments.
  
      """
      if self.parent is None:  # when deleted
          return
      if self.parent.render_window is None:  # BasePlotter
          return
  
      if self._prior_window_size != self.parent.window_size:
          self._prior_window_size = self.parent.window_size
  
      actor = self._actors["background"]
      image_data = actor.GetInput()
      origin = image_data.GetOrigin()
      extent = image_data.GetExtent()
      spacing = image_data.GetSpacing()
      xc = origin[0] + 0.5 * (extent[0] + extent[1]) * spacing[0]
      yc = origin[1] + 0.5 * (extent[2] + extent[3]) * spacing[1]
      yd = (extent[3] - extent[2] + 1) * spacing[1]
      dist = self.camera.distance
  
      # make the longest dimensions match the plotting window
      img_dim = np.array(image_data.dimensions[:2])
      self.camera.focus = np.array([xc, yc, 0.0])
      self.camera.position = np.array([xc, yc, dist])
  
      ratio = img_dim / np.array(self.parent.window_size)
      scale_value = 1
      if ratio.max() > 1:
          # images are not scaled if larger than the window
          scale_value = ratio.max()
  
      if self._scale is not None:
          scale_value /= self._scale
  
      self.camera.parallel_scale = 0.5 * yd / self._scale
  
imports: import numpy
  import pyvista
  from .renderer import Renderer
label_desc: Use image node_id 2 for calling the BackgroundRenderer obj's underlying member method code with example usage: obj.resize() without return types