mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-15 10:36:43 +02:00
34 lines
634 B
QML
34 lines
634 B
QML
import QtQuick 2.0
|
|
|
|
Item {
|
|
|
|
property alias border: borderRectangle.border
|
|
property alias source: image.source
|
|
property alias fillMode: image.fillMode
|
|
property alias radius: mask.radius
|
|
|
|
Image {
|
|
id: image
|
|
anchors.fill: parent
|
|
anchors.margins: borderRectangle.border.width
|
|
}
|
|
|
|
Rectangle {
|
|
id: mask
|
|
anchors.fill: image
|
|
}
|
|
|
|
TransparencyMask {
|
|
anchors.fill: image
|
|
source: image
|
|
maskSource: mask
|
|
}
|
|
|
|
Rectangle {
|
|
id: borderRectangle
|
|
anchors.fill: parent
|
|
|
|
radius: mask.radius
|
|
color: "transparent"
|
|
}
|
|
}
|