viser
viser copied to clipboard
Choose interpolation method for background image.
It would be nice to be able to choose the interpolation method when setting the background image. Ideally a interface like,
set_background_image(image: numpy.ndarray, format: Literal[png, jpeg] = 'jpeg', jpeg_quality: Optional[int] = None, interpolation: Literal[nearest, bilinear, bicubic] = 'bilinear')