ScalableColorOverlay QML Type

The scalable color overlay component of Neptune 3. More...

Import Statement: import .
Since: Qt 5.13
Inherits:

ShaderEffect

Properties

Detailed Description

The ScalableColorOverlay alters the colors of the source item by applying an overlay color, it scales according to image source scale factor.

Example Usage

The following example uses ScalableColorOverlay:

import QtQuick 2.10
import shared.effects 1.0

Item {
    id: root

    Image {
        id: img
        source: "path to image"
        ScalableColorOverlay {
            anchors.fill: parent
            source: img
            color: "red"
        }
    }
}

Property Documentation

color : color

This property defines the RGBA color value which is used to colorize the source. By default, the property is set to "transparent".


source : variant

This property defines the source item that provides the source pixels for the effect.


© 2018 Pelagicore AG. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.