Can I load a plain image file into one of the Slice views, controlled by a loadable C++ extension?

In the Slicer main window, there are the red, green, and yellow slice views. I want to create an extension which can temporarily replace one of the slice views with a static image display, loaded from a regular image file (jpg png etc.). Preferably, I would like to have this image persist when changing the window layout (e.g. from Conventional to Red Slice Only), until closed through the extension.

If this is not possible, can I load an image into the slice view, then hide the Slice Selector slider to achieve the same visual effect?

My desired result looks something like this (the Red slice here is replaced with some arbitrary image file)

1 Like

You could create a custom layout following example scripts here:
and put a QT widget to where you want your static image. After that, you can set an icon or picture for the widget the same way as you would do in any QT application.