Lanczos
Properties | |
real | antiRingingStrength |
real | resolution |
real | sinc |
var | source |
size | sourceSize |
size | targetSize |
real | windowSinc |
Detailed Description
A ShaderEffect that makes use of the Lanczos resampling method for scaling textures.
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.
Definition at line 18 of file Lanczos.qml.
Property Documentation
◆ antiRingingStrength
|
read |
◆ resolution
|
read |
The resolution of the Lanczos effect.
Larger values mean reduced (more pixelated) results. Defaults to 0.98 to achieve good results.
Definition at line 58 of file Lanczos.qml.
◆ sinc
|
read |
◆ source
|
read |
◆ sourceSize
|
read |
The size of the source texture.
Used to perform aspect ratio correction.
Definition at line 27 of file Lanczos.qml.
◆ targetSize
|
read |
The target size of the Lanczos effect.
Defaults to the width and height of this effect.
Definition at line 33 of file Lanczos.qml.
◆ windowSinc
|
read |
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.