ConvolutionFilter QML Type
Applies a convolution kernel to a FilteredImage More...
Import Statement: | import Sailfish.Silica.Background 1.0 |
Inherited By: | ResizeFilter
|
Properties
Detailed Description
Note: This QML type is under development and is subject to change.
A convolution filter is most commonly used to apply a blur effect to an image although the exact effect will depend on the kernel set.
A typical blur is achieved by applying a Gaussian kernel with a large sample size and deviation. Increasing the sample size and deviation, repeat applications, and reducing the size of the input image can all increase the amount of blur applied.
ConvolutionFilter {
kernel: Kernel.gaussian(Kernel.SampleSize17, 5)
}
Property Documentation
The convolution kernel to apply to a FilteredImage.
Kernels can be constructed using the Kernel singleton.