overte/interface/resources/qml/hifi/avatarapp/RoundImage.qml
2018-07-06 21:00:54 +03:00

36 lines
718 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
property alias status: image.status
property alias progress: image.progress
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"
}
}