Sailfish OS
  • Info
  • User Experience
  • Cases
  • Community
  • Developers
  • Contact
  • Get Sailfish OS
Select Page
  • Info
  • User Experience
  • Cases
  • Community
  • Developers
  • Contact
  • Get Sailfish OS

API Documentation

Documentation for developing SailfishOS applications
  • API Documentation
  • Libsailfishapp
  • Sailfish Silica
    • Documentation
    • Icon Reference
  • Sailfish Components
    • Sailfish Accounts
    • Sailfish Bluetooth
    • Sailfish Contacts
    • Sailfish Crypto
    • Sailfish Gallery
    • Sailfish Media
    • Sailfish Pickers
    • Sailfish Secrets
    • Sailfish Share
    • Sailfish Telephony
    • Sailfish Webview
    • Amber Web Authorization
    • Amber MPRIS
  • Nemo QML Plugins
    • Configuration
    • Contacts
    • D-Bus
    • Keepalive
    • Notifications
    • Thumbnailer
  • Sailfish Middleware
    • MDM Framework
    • MDM Policy Framework
    • User Manager Daemon
  • API Documentation
  • Libsailfishapp
  • Sailfish Silica
    • Documentation
    • Icon Reference
  • Sailfish Components
    • Sailfish Accounts
    • Sailfish Bluetooth
    • Sailfish Contacts
    • Sailfish Crypto
    • Sailfish Gallery
    • Sailfish Media
    • Sailfish Pickers
    • Sailfish Secrets
    • Sailfish Share
    • Sailfish Telephony
    • Sailfish Webview
    • Amber Web Authorization
    • Amber MPRIS
  • Nemo QML Plugins
    • Configuration
    • Contacts
    • D-Bus
    • Keepalive
    • Notifications
    • Thumbnailer
  • Sailfish Middleware
    • MDM Framework
    • MDM Policy Framework
    • User Manager Daemon

Contents

  • Properties
  • Detailed Description

ResizeFilter QML Type

Resizes the content of a FilteredImage. More...

Import Statement: import Sailfish.Silica.Background 1.0
Inherits:

ConvolutionFilter

  • List of all members, including inherited members

Properties

  • fillMode : enum
  • maximumScaleFactor : int
  • size : size

Detailed Description

Note: This QML type is under development and is subject to change.

A ResizeFilter resizes the output of the previous filter step (or the input source) so all subsequent filters are applied to an image of that size. The implicit size of the final image will be determined by the size property of the last ResizeFilter and the fillMode.

When the image is resized the source image is sampled using a convolution filter. By default ResizeFilter chooses a filter which will produce a smooth image but this default can be overridden by assigning a preferred kernel to the ConvolutionFilter kernel property.

 ResizeFilter {
     size {
         width: 256
         height: 256
     }
     fillMode: Fill.PreserveAspectFit
 }

Property Documentation

fillMode : enum

Determines how the output size should be adjusted to fit the desired size if the input size has a different aspect ratio.

The possible values are:

  • Fill.Stretch The resized image will be stretched to fit the desired size exactly.
  • Fill.PreserveAspectFit The resized image may be smaller than the desired size in one dimension in order to retain the original sizes aspect ratio.
  • Fill.PreserveAspectByExpanding The resized image may be larger than the desired size in one dimension in order to retain the original sizes aspect ratio.

The default value is Fill.Stretch


maximumScaleFactor : int

Specifies the maximum amount an image should be scaled in single step. If an image has to be scaled by a larger amount it will be resized to an intermediate image and then scaled again.


size : size

The output image size of the filter.

If the fillMode property is not equal to Fill.Stretch the size may be adjusted to comply.


  • Legal
  • Contact Us
  • Jolla Mobile Ltd © 2025

  • Facebook
  • Twitter
  • Mastodon
  • YouTube
  • LinkedIn