[docs]classImage(QtWidgetElement):"""Render an image. .. highlights:: - Underlying Qt Widget `QLabel <https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QLabel.html>`_ .. rubric:: Props All **props** from :class:`QtWidgetElement`, plus: Args: src: One of: * A path to an image file. * A `QImage <https://doc.qt.io/qtforpython-6/PySide6/QtGui/QImage.html>`_. * A `QPixmap <https://doc.qt.io/qtforpython-6/PySide6/QtGui/QPixmap.html>`_. aspect_ratio_mode: The aspect ratio mode of the image. * :code:`None` for a fixed image which doesn’t scale. * An `AspectRatioMode <https://doc.qt.io/qtforpython-6/PySide6/QtCore/Qt.html#PySide6.QtCore.Qt.AspectRatioMode>`_ to specify how the image should scale. .. rubric:: Usage To render a 3-dimensional :code:`uint8` :code:`numpy` array as an image, see :class:`edifice.extra.numpy_image.NumpyImage`. """