Pages
API Documentation
On this page

Lanczos QML Type

A ShaderEffect that makes use of the Lanczos resampling method for scaling textures. More...

  • Import Statement: import org.kde.graphicaleffects
  • Inherits: ShaderEffect

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

[default: 0.65] antiRingingStrength : real

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.

[default: 1.0] sinc : real

Lanczos Sinc function factor.

[required] source : var

The source texture. Can be any QQuickTextureProvider.

[required] sourceSize : size

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.

[default: 0.4] windowSinc : real

Lanczos window Sinc function factor.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.