我有一段代碼在QML:需要用於抗混疊的圖像設爲Qml FILLMODE
Image {
anchors.rightMargin: 10
anchors.leftMargin: 10
anchors.bottomMargin: 10
anchors.topMargin: 10
anchors.fill: parent
source: "Google Chrome Icon.png"
fillMode: Image.PreserveAspectFit
}
的圖像被自動地與窗口伸展。但拉伸方法沒有抗鋸齒,因此,醜陋的結果:
chrome image http://img838.imageshack.us/img838/667/unantialiasedchrome.png
有沒有使結果有較大的任何方法?
謝謝你,你是男人。 – herophuong 2012-04-19 13:22:34
Qt docs說關於平滑:'默認情況下,這個屬性設置爲true .' – 2016-02-04 09:09:30