4 This is a static display test of the various Image fill modes. See the png file in the data
5 subdirectory to see what the image should look like.
9 id: screen; width: 360; height: 200; color: "gray"
10 property string source: "face.png"
14 Image { width: 120; height: 100; source: screen.source; fillMode: Image.Stretch }
15 Image { width: 120; height: 100; source: screen.source; fillMode: Image.PreserveAspectFit; smooth: true }
16 Image { width: 120; height: 100; source: screen.source; fillMode: Image.PreserveAspectCrop }
17 Image { width: 120; height: 100; source: screen.source; fillMode: Image.Tile; smooth: true }
18 Image { width: 120; height: 100; source: screen.source; fillMode: Image.TileHorizontally }
19 Image { width: 120; height: 100; source: screen.source; fillMode: Image.TileVertically }