Alessandro Bonazzi 8c43d5cf2f Patch level : 12.00
Files correlati     : cg0.exe cg0700a.msk cg0700b.msk cg3.exe cg4.exe

Bug                 :

Commento:
Merge 1.0 libraries
2025-04-06 00:42:21 +02:00

22 lines
927 B
QML

import QtQuick 1.0
/*
This is a static display test of the various Image fill modes. See the png file in the data
subdirectory to see what the image should look like.
*/
Rectangle {
id: screen; width: 360; height: 200; color: "gray"
property string source: "face.png"
Grid {
columns: 3
Image { width: 120; height: 100; source: screen.source; fillMode: Image.Stretch }
Image { width: 120; height: 100; source: screen.source; fillMode: Image.PreserveAspectFit; smooth: true }
Image { width: 120; height: 100; source: screen.source; fillMode: Image.PreserveAspectCrop }
Image { width: 120; height: 100; source: screen.source; fillMode: Image.Tile; smooth: true }
Image { width: 120; height: 100; source: screen.source; fillMode: Image.TileHorizontally }
Image { width: 120; height: 100; source: screen.source; fillMode: Image.TileVertically }
}
}