Lanczos QML Type
A ShaderEffect that makes use of the Lanczos resampling method for scaling textures. More...
| Import Statement: | import org.kde.graphicaleffects |
Properties
- antiRingingStrength : real
- resolution : real
- sinc : real
- source : var
- sourceSize : size
- targetSize : size
- windowSinc : real
Detailed Description
Lanczos resampling tries to preserve detail when scaling down images and thus looks less blurry compared to a simple linear interpolation.
This effect implements a single-pass Lanczos resampling filter using two lobes. Everything is done in the shader, with some defaults set for parameters. These defaults were designed to provide a good visual result when scaling down window thumbnails.
Property Documentation
antiRingingStrength : real [default: 0.65]
The amount of anti-ringing to apply.
resolution : real
The resolution of the Lanczos effect.
Larger values mean reduced (more pixelated) results. Defaults to 0.98 for good results.
sinc : real [default: 1.0]
Lanczos Sinc function factor.
source : var [required]
The source texture. Can be any QQuickTextureProvider.
sourceSize : size [required]
The size of the source texture. Used to perform aspect ratio correction.
targetSize : size
The target size of the Lanczos effect.
Defaults to the width and height of this effect.
windowSinc : real [default: 0.4]
Lanczos window Sinc function factor.