2
我試圖從一個正常的圖像 創建感知形象我需要的東西是這樣的 如何創建QML一個何衛青圖像
這樣
我嘗試不同像旋轉和使用像這樣的面具的方法
Image {
id: bug
source: "./Graphics/sample.png"
width: 200
height: 200
anchors.centerIn: parent
sourceSize: Qt.size(parent.width, parent.height)
smooth: true
transform: Rotation { origin.x: 30; origin.y: 30; axis { x: 0; y: 1; z: 0 } angle: 46 }
visible: true
layer.enabled: true
layer.effect: OpacityMask {
maskSource:
Image {
id: mask
source: "./mask.png"
sourceSize: Qt.size(parent.width, parent.height)
smooth: true
visible: false
}
}
}
是否有任何適當的方法來實際創造這樣的效果。