import QtQuick
import QtQuick.Effects

Item {
    property alias source: sourceItem.source
    property alias fillMode: sourceItem.fillMode
    property alias radius: rect.radius

    Image {
        id: sourceItem
        anchors.fill: parent
        visible: false
    }

    MultiEffect {
        source: sourceItem
        anchors.fill: sourceItem
        maskEnabled: true
        maskSource: mask
    }

    Item {
        id: mask
        width: sourceItem.width
        height: sourceItem.height
        layer.enabled: true
        visible: false

        Rectangle {
            id: rect
            width: sourceItem.width
            height: sourceItem.height
            radius: 10
            color: "black"
        }
    }
}
