Class ScaledCallbackImagePainter

java.lang.Object
uk.co.caprica.vlcj.player.component.callback.ScaledCallbackImagePainter
All Implemented Interfaces:
CallbackImagePainter

public class ScaledCallbackImagePainter extends Object implements CallbackImagePainter
Implementation of a painter that scales to fit the container while preserving the original aspect ratio.

The default implementation uses bilinear interpolation when painting the scaled image.

The aspect ratio of the original image is preserved when scaling is applied.