This is straightforward for pyqtgraph objects that provide the getViewWidget method.
The getViewWidget method returns a scene object (the first one in a view). For example, for a plotItem, self.plot = self.addPlot() self.viewWidget = self.plot.getViewWidget() self.viewWidget.setRenderHint(QPainter.SmoothPixmapTransform) This provides smooth image interpolation on high levels of zoom and preserves other mouse functions of the view. It has no noticeable performance degradation for user selected images, but would probably be unacceptable for a 'movie' (which is why it is not the default in Qt). On Sunday, May 24, 2020 at 2:50:39 PM UTC-4, BPT wrote: > > I am interested in having the effect of Qt.SmoothTransformation for highly > zoomed images -- so that they do not look 'pixelated'. Is there some way, > such as subclassing imageItem and overloading the paint methods, that this > can be done in pyqtgraph? Ideally it would retain the behavior of the mouse > "zoom" function when an imageItem is added to a view (viewBox or plotItem). > -- You received this message because you are subscribed to the Google Groups "pyqtgraph" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/edee54b1-3cc5-40d8-a60f-feb21ba84b61%40googlegroups.com.
